/dports/devel/libunit/unit-1.26.1/src/ |
H A D | nxt_http_route_addr.c | 21 nxt_int_t ret, cidr_prefix; in nxt_http_route_addr_pattern_parse() local 121 cidr_prefix = nxt_int_parse(delim + 1, in nxt_http_route_addr_pattern_parse() 123 if (nxt_slow_path(cidr_prefix < 0 || cidr_prefix > 128)) { in nxt_http_route_addr_pattern_parse() 154 if (cidr_prefix >= 8) { in nxt_http_route_addr_pattern_parse() 156 cidr_prefix -= 8; in nxt_http_route_addr_pattern_parse() 161 if (cidr_prefix > 0) { in nxt_http_route_addr_pattern_parse() 164 cidr_prefix = 0; in nxt_http_route_addr_pattern_parse() 229 cidr_prefix = nxt_int_parse(delim + 1, in nxt_http_route_addr_pattern_parse() 231 if (nxt_slow_path(cidr_prefix < 0 || cidr_prefix > 32)) { in nxt_http_route_addr_pattern_parse() 243 if (cidr_prefix == 0) { in nxt_http_route_addr_pattern_parse() [all …]
|
/dports/www/unit/unit-1.26.1/src/ |
H A D | nxt_http_route_addr.c | 21 nxt_int_t ret, cidr_prefix; in nxt_http_route_addr_pattern_parse() local 121 cidr_prefix = nxt_int_parse(delim + 1, in nxt_http_route_addr_pattern_parse() 123 if (nxt_slow_path(cidr_prefix < 0 || cidr_prefix > 128)) { in nxt_http_route_addr_pattern_parse() 154 if (cidr_prefix >= 8) { in nxt_http_route_addr_pattern_parse() 156 cidr_prefix -= 8; in nxt_http_route_addr_pattern_parse() 161 if (cidr_prefix > 0) { in nxt_http_route_addr_pattern_parse() 164 cidr_prefix = 0; in nxt_http_route_addr_pattern_parse() 229 cidr_prefix = nxt_int_parse(delim + 1, in nxt_http_route_addr_pattern_parse() 231 if (nxt_slow_path(cidr_prefix < 0 || cidr_prefix > 32)) { in nxt_http_route_addr_pattern_parse() 243 if (cidr_prefix == 0) { in nxt_http_route_addr_pattern_parse() [all …]
|
/dports/www/unit-php/unit-1.26.1/src/ |
H A D | nxt_http_route_addr.c | 21 nxt_int_t ret, cidr_prefix; in nxt_http_route_addr_pattern_parse() local 121 cidr_prefix = nxt_int_parse(delim + 1, in nxt_http_route_addr_pattern_parse() 123 if (nxt_slow_path(cidr_prefix < 0 || cidr_prefix > 128)) { in nxt_http_route_addr_pattern_parse() 154 if (cidr_prefix >= 8) { in nxt_http_route_addr_pattern_parse() 156 cidr_prefix -= 8; in nxt_http_route_addr_pattern_parse() 161 if (cidr_prefix > 0) { in nxt_http_route_addr_pattern_parse() 164 cidr_prefix = 0; in nxt_http_route_addr_pattern_parse() 229 cidr_prefix = nxt_int_parse(delim + 1, in nxt_http_route_addr_pattern_parse() 231 if (nxt_slow_path(cidr_prefix < 0 || cidr_prefix > 32)) { in nxt_http_route_addr_pattern_parse() 243 if (cidr_prefix == 0) { in nxt_http_route_addr_pattern_parse() [all …]
|
/dports/www/unit-python/unit-1.26.1/src/ |
H A D | nxt_http_route_addr.c | 21 nxt_int_t ret, cidr_prefix; in nxt_http_route_addr_pattern_parse() local 121 cidr_prefix = nxt_int_parse(delim + 1, in nxt_http_route_addr_pattern_parse() 123 if (nxt_slow_path(cidr_prefix < 0 || cidr_prefix > 128)) { in nxt_http_route_addr_pattern_parse() 154 if (cidr_prefix >= 8) { in nxt_http_route_addr_pattern_parse() 156 cidr_prefix -= 8; in nxt_http_route_addr_pattern_parse() 161 if (cidr_prefix > 0) { in nxt_http_route_addr_pattern_parse() 164 cidr_prefix = 0; in nxt_http_route_addr_pattern_parse() 229 cidr_prefix = nxt_int_parse(delim + 1, in nxt_http_route_addr_pattern_parse() 231 if (nxt_slow_path(cidr_prefix < 0 || cidr_prefix > 32)) { in nxt_http_route_addr_pattern_parse() 243 if (cidr_prefix == 0) { in nxt_http_route_addr_pattern_parse() [all …]
|
/dports/www/unit-java/unit-1.26.1/src/ |
H A D | nxt_http_route_addr.c | 21 nxt_int_t ret, cidr_prefix; in nxt_http_route_addr_pattern_parse() local 121 cidr_prefix = nxt_int_parse(delim + 1, in nxt_http_route_addr_pattern_parse() 123 if (nxt_slow_path(cidr_prefix < 0 || cidr_prefix > 128)) { in nxt_http_route_addr_pattern_parse() 154 if (cidr_prefix >= 8) { in nxt_http_route_addr_pattern_parse() 156 cidr_prefix -= 8; in nxt_http_route_addr_pattern_parse() 161 if (cidr_prefix > 0) { in nxt_http_route_addr_pattern_parse() 164 cidr_prefix = 0; in nxt_http_route_addr_pattern_parse() 229 cidr_prefix = nxt_int_parse(delim + 1, in nxt_http_route_addr_pattern_parse() 231 if (nxt_slow_path(cidr_prefix < 0 || cidr_prefix > 32)) { in nxt_http_route_addr_pattern_parse() 243 if (cidr_prefix == 0) { in nxt_http_route_addr_pattern_parse() [all …]
|
/dports/www/unit-perl/unit-1.26.1/src/ |
H A D | nxt_http_route_addr.c | 21 nxt_int_t ret, cidr_prefix; in nxt_http_route_addr_pattern_parse() local 121 cidr_prefix = nxt_int_parse(delim + 1, in nxt_http_route_addr_pattern_parse() 123 if (nxt_slow_path(cidr_prefix < 0 || cidr_prefix > 128)) { in nxt_http_route_addr_pattern_parse() 154 if (cidr_prefix >= 8) { in nxt_http_route_addr_pattern_parse() 156 cidr_prefix -= 8; in nxt_http_route_addr_pattern_parse() 161 if (cidr_prefix > 0) { in nxt_http_route_addr_pattern_parse() 164 cidr_prefix = 0; in nxt_http_route_addr_pattern_parse() 229 cidr_prefix = nxt_int_parse(delim + 1, in nxt_http_route_addr_pattern_parse() 231 if (nxt_slow_path(cidr_prefix < 0 || cidr_prefix > 32)) { in nxt_http_route_addr_pattern_parse() 243 if (cidr_prefix == 0) { in nxt_http_route_addr_pattern_parse() [all …]
|
/dports/net/shadowsocks-libev/shadowsocks-libev-3.3.5/libipset/include/ipset/ |
H A D | ipset.h | 86 unsigned int cidr_prefix); 93 unsigned int cidr_prefix); 103 unsigned int cidr_prefix); 110 unsigned int cidr_prefix); 120 unsigned int cidr_prefix); 127 unsigned int cidr_prefix); 150 unsigned int cidr_prefix; member 239 unsigned int cidr_prefix, int value); 249 unsigned int cidr_prefix, int value); 259 unsigned int cidr_prefix, int value);
|
/dports/net/shadowsocks-libev/shadowsocks-libev-3.3.5/libcork/src/libcork/core/ |
H A D | ip-address.c | 126 unsigned int cidr_prefix) in cork_ipv4_is_valid_network() argument 130 if (cidr_prefix > 32) { in cork_ipv4_is_valid_network() 132 } else if (cidr_prefix == 32) { in cork_ipv4_is_valid_network() 136 cidr_mask = 0xffffffff >> cidr_prefix; in cork_ipv4_is_valid_network() 434 unsigned int cidr_prefix) in cork_ipv6_is_valid_network() argument 438 if (cidr_prefix > 128) { in cork_ipv6_is_valid_network() 440 } else if (cidr_prefix == 128) { in cork_ipv6_is_valid_network() 443 } else if (cidr_prefix == 64) { in cork_ipv6_is_valid_network() 447 } else if (cidr_prefix > 64) { in cork_ipv6_is_valid_network() 449 cidr_mask[1] = UINT64_C(0xffffffffffffffff) >> (cidr_prefix-64); in cork_ipv6_is_valid_network() [all …]
|
/dports/net/shadowsocks-libev/shadowsocks-libev-3.3.5/libipset/tests/ |
H A D | test-iterator.c | 61 fail_unless(it->cidr_prefix == IPV4_BIT_SIZE, in START_TEST() 94 fail_unless(it->cidr_prefix == 31, in START_TEST() 127 fail_unless(it->cidr_prefix == 16, in START_TEST() 171 fail_unless(it->cidr_prefix == 31, in START_TEST() 237 fail_unless(it->cidr_prefix == 127, in START_TEST() 270 fail_unless(it->cidr_prefix == 16, in START_TEST() 314 fail_unless(it->cidr_prefix == 127, in START_TEST() 347 fail_unless(it->cidr_prefix == 0, in START_TEST() 355 fail_unless(it->cidr_prefix == 0, in START_TEST() 401 fail_unless(it->cidr_prefix == 32, in START_TEST() [all …]
|
/dports/net/shadowsocks-libev/shadowsocks-libev-3.3.5/libipset/src/libipset/set/ |
H A D | inspection.c | 50 unsigned int cidr_prefix) in ipset_ip_add_network() argument 53 return ipset_ipv4_add_network(set, &addr->ip.v4, cidr_prefix); in ipset_ip_add_network() 55 return ipset_ipv6_add_network(set, &addr->ip.v6, cidr_prefix); in ipset_ip_add_network() 73 unsigned int cidr_prefix) in ipset_ip_remove_network() argument 76 return ipset_ipv4_remove_network(set, &addr->ip.v4, cidr_prefix); in ipset_ip_remove_network() 78 return ipset_ipv6_remove_network(set, &addr->ip.v6, cidr_prefix); in ipset_ip_remove_network()
|
H A D | inspection-template.c.in | 59 unsigned int cidr_prefix) 63 if (cidr_prefix > IP_BIT_SIZE) { 66 "CIDR block %u out of range [0..%u]", cidr_prefix, IP_BIT_SIZE); 73 IPSET_NAME(assignment), elem, cidr_prefix + 1, 1); 111 unsigned int cidr_prefix) 115 if (cidr_prefix > IP_BIT_SIZE) { 118 "CIDR block %u out of range [0..%u]", cidr_prefix, IP_BIT_SIZE); 125 IPSET_NAME(assignment), elem, cidr_prefix + 1, 0);
|
H A D | iterator.c | 75 for (i = 0; i < iterator->cidr_prefix; i++) { in create_ip_address() 82 DEBUG("Current IP address is %s/%u", buf, iterator->cidr_prefix); in create_ip_address() 181 iterator->cidr_prefix = last_bit; in expand_ipv4() 206 iterator->cidr_prefix = last_bit; in expand_ipv6()
|
/dports/net/tableutil/tableutil-0.6/ |
H A D | ip4_range.c | 359 u_int8_t cidr_prefix; in ip4_range_list_output_cidr() local 367 cidr_prefix = 32; in ip4_range_list_output_cidr() 368 ip4_cidr_output(f, cidr_address, cidr_prefix); in ip4_range_list_output_cidr() 373 cidr_prefix = 0; in ip4_range_list_output_cidr() 374 ip4_cidr_output(f, cidr_address, cidr_prefix); in ip4_range_list_output_cidr() 379 cidr_prefix = ip4_cidr_prefix(cidr_address); in ip4_range_list_output_cidr() 382 if (cidr_prefix < diff_prefix) in ip4_range_list_output_cidr() 383 cidr_prefix = diff_prefix; in ip4_range_list_output_cidr() 385 ip4_cidr_output(f, cidr_address, cidr_prefix); in ip4_range_list_output_cidr() 388 cidr_address = ip4_cidr_top_address(cidr_address, cidr_prefix)+1; in ip4_range_list_output_cidr() [all …]
|
/dports/sysutils/p5-Rex/Rex-1.13.4/lib/Rex/Hardware/Network/ |
H A D | Linux.pm | 182 my $cidr_prefix = $2; 193 $dev->{$dev_name}->{netmask} = _convert_cidr_prefix($cidr_prefix); 202 _convert_cidr_prefix($cidr_prefix); 209 $dev->{$cur_dev}->{netmask} = _convert_cidr_prefix($cidr_prefix); 415 my ($cidr_prefix) = @_; 418 my $binary_mask = '1' x $cidr_prefix . '0' x ( 32 - $cidr_prefix );
|
/dports/net/shadowsocks-libev/shadowsocks-libev-3.3.5/libipset/src/libipset/map/ |
H A D | inspection.c | 51 unsigned int cidr_prefix, int value) in ipmap_ip_set_network() argument 54 ipmap_ipv4_set_network(map, &addr->ip.v4, cidr_prefix, value); in ipmap_ip_set_network() 56 ipmap_ipv6_set_network(map, &addr->ip.v6, cidr_prefix, value); in ipmap_ip_set_network()
|
H A D | inspection-template.c.in | 59 unsigned int cidr_prefix, int value) 63 if (cidr_prefix > IP_BIT_SIZE) { 66 "CIDR block %u out of range [0..%u]", cidr_prefix, IP_BIT_SIZE); 73 IPMAP_NAME(assignment), elem, cidr_prefix + 1, value);
|
/dports/net/shadowsocks-libev/shadowsocks-libev-3.3.5/libipset/docs/ |
H A D | sets.rst | 74 …: bool ipset_ipv4_add_network(struct ip_set \*set, struct cork_ipv4 \*ip, unsigned int cidr_prefix) 75 … bool ipset_ipv6_add_network(struct ip_set \*set, struct cork_ipv6 \*ip, unsigned int cidr_prefix) 76 … bool ipset_ip_add_network(struct ip_set \*set, struct cork_ip \*ip, unsigned int cidr_prefix) 79 addresses in the set; *cidr_prefix* is the number of bits in the network 81 *cidr_prefix* must be in the range 0-32 (inclusive) if *ip* is an IPv4 89 …ool ipset_ipv4_remove_network(struct ip_set \*set, struct cork_ipv4 \*ip, unsigned int cidr_prefix) 91 … bool ipset_ip_remove_network(struct ip_set \*set, struct cork_ip \*ip, unsigned int cidr_prefix) 94 the addresses in the set; *cidr_prefix* is the number of bits in the network 96 *cidr_prefix* must be in the range 0-32 (inclusive) if *ip* is an IPv4 109 4632, *ip* can only have non-zero bits in its *cidr_prefix* uppermost bits. [all …]
|
H A D | maps.rst | 72 …p_ipv4_set_network(struct ip_map \*map, struct cork_ipv4 \*ip, unsigned int cidr_prefix, int value) 73 …p_ipv6_set_network(struct ip_map \*map, struct cork_ipv6 \*ip, unsigned int cidr_prefix, int value) 74 …ipmap_ip_set_network(struct ip_map \*map, struct cork_ip \*ip, unsigned int cidr_prefix, int value) 77 *value*. *ip* is one of the addresses in the CIDR network; *cidr_prefix* is 79 network, as defined in `RFC 4632`_. *cidr_prefix* must be in the range 0-32 88 4632, *ip* can only have non-zero bits in its *cidr_prefix* uppermost bits.
|
/dports/net/shadowsocks-libev/shadowsocks-libev-3.3.5/libcork/include/libcork/core/ |
H A D | net-addresses.h | 78 unsigned int cidr_prefix); 102 unsigned int cidr_prefix); 144 cork_ip_is_valid_network(const struct cork_ip *addr, unsigned int cidr_prefix);
|
/dports/net/shadowsocks-libev/shadowsocks-libev-3.3.5/libipset/src/ipsetcat/ |
H A D | ipsetcat.c | 205 if ((it->addr.version == 4 && it->cidr_prefix == 32) || in main() 206 (it->addr.version == 6 && it->cidr_prefix == 128)) { in main() 209 cork_buffer_printf(&buf, "%s/%u\n", ip_buf, it->cidr_prefix); in main()
|
/dports/net/shadowsocks-libev/shadowsocks-libev-3.3.5/libcork/docs/old/ |
H A D | net-addresses.rst | 122 …function:: bool cork_ipv4_is_valid_network(const struct cork_ipv4 \*addr, unsigned int cidr_prefix) 123 … bool cork_ipv6_is_valid_network(const struct cork_ipv6 \*addr, unsigned int cidr_prefix) 124 bool cork_ip_is_valid_network(const struct cork_ipv6 \*addr, unsigned int cidr_prefix)
|
/dports/sysutils/ansible2/ansible-2.9.27/lib/ansible/modules/net_tools/nios/ |
H A D | nios_member.py | 394 cidr_prefix=dict(type='int'),
|
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/community/general/plugins/modules/net_tools/nios/ |
H A D | nios_member.py | 476 cidr_prefix=dict(type='int'),
|
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/community/general/plugins/modules/ |
H A D | nios_member.py | 476 cidr_prefix=dict(type='int'),
|
/dports/security/silktools/silk-3.19.1/src/libsilk/ |
H A D | skipaddr.h | 539 uint32_t cidr_prefix);
|