Home
last modified time | relevance | path

Searched refs:nm_bits (Results 1 – 3 of 3) sorted by relevance

/lighttpd1.4/src/t/
H A Dtest_configfile.c67 unsigned long nm_bits = strtoul(slash+1, NULL, 10); in test_configfile_addrbuf_eq_remote_ip_mask() local
72 *(unsigned char *)after = (unsigned char)nm_bits; in test_configfile_addrbuf_eq_remote_ip_mask()
74 if (nm_bits) b->ptr[len]='\0'; /*(sock_addr_inet_pton() w/o CIDR mask)*/ in test_configfile_addrbuf_eq_remote_ip_mask()
76 if (nm_bits) b->ptr[len]='/'; in test_configfile_addrbuf_eq_remote_ip_mask()
/lighttpd1.4/src/
H A Dconfigfile.c2399 unsigned long nm_bits = 0; in config_remoteip_normalize() local
2403 nm_bits = strtoul(slash + 1, &nptr, 10); in config_remoteip_normalize()
2404 if (*nptr || 0 == nm_bits || nm_bits > (NULL != colon ? 128 : 32)) { in config_remoteip_normalize()
2417 if (nm_bits) { in config_remoteip_normalize()
2419 buffer_append_int(b, (int)nm_bits); in config_remoteip_normalize()
2430 *(unsigned char *)after = (unsigned char)nm_bits; in config_remoteip_normalize()
2432 if (nm_bits) b->ptr[len] = '\0'; /*(sock_addr_inet_pton() w/o CIDR mask)*/ in config_remoteip_normalize()
2434 if (nm_bits) b->ptr[len] = '/'; in config_remoteip_normalize()
H A Dmod_extforward.c252 const int nm_bits = strtol(nm_slash + 1, &err, 10); in mod_extforward_parse_forwarder() local
254 if (*err || nm_bits <= 0 || !light_isdigit(nm_slash[1])) { in mod_extforward_parse_forwarder()
261 sm->bits = nm_bits; in mod_extforward_parse_forwarder()