Home
last modified time | relevance | path

Searched refs:first_ip (Results 1 – 25 of 82) sorted by relevance

1234

/dports/multimedia/libv4l/linux-5.13-rc2/net/netfilter/ipset/
H A Dip_set_bitmap_ip.c97 htonl(map->first_ip + id * map->hosts)); in bitmap_ip_do_list()
121 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ip_kadt()
168 if (ip < map->first_ip) in bitmap_ip_uadt()
202 return x->first_ip == y->first_ip && in bitmap_ip_same_set()
220 u32 first_ip, u32 last_ip, in init_map_ip() argument
226 map->first_ip = first_ip; in init_map_ip()
257 u32 first_ip = 0, last_ip = 0, hosts; in bitmap_ip_create() local
275 if (first_ip > last_ip) in bitmap_ip_create()
276 swap(first_ip, last_ip); in bitmap_ip_create()
293 first_ip &= ip_set_hostmask(netmask); in bitmap_ip_create()
[all …]
H A Dip_set_bitmap_ipmac.c71 return ip - m->first_ip; in ip_to_id()
195 htonl(map->first_ip + id)) || in bitmap_ipmac_do_list()
219 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ipmac_kadt()
265 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ipmac_uadt()
286 return x->first_ip == y->first_ip && in bitmap_ipmac_same_set()
305 map->first_ip = first_ip; in init_map_ipmac()
321 u32 first_ip = 0, last_ip = 0; in bitmap_ipmac_create() local
339 if (first_ip > last_ip) in bitmap_ipmac_create()
340 swap(first_ip, last_ip); in bitmap_ipmac_create()
346 ip_set_mask_from_to(first_ip, last_ip, cidr); in bitmap_ipmac_create()
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/net/netfilter/ipset/
H A Dip_set_bitmap_ip.c97 htonl(map->first_ip + id * map->hosts)); in bitmap_ip_do_list()
121 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ip_kadt()
168 if (ip < map->first_ip) in bitmap_ip_uadt()
202 return x->first_ip == y->first_ip && in bitmap_ip_same_set()
220 u32 first_ip, u32 last_ip, in init_map_ip() argument
226 map->first_ip = first_ip; in init_map_ip()
257 u32 first_ip = 0, last_ip = 0, hosts; in bitmap_ip_create() local
275 if (first_ip > last_ip) in bitmap_ip_create()
276 swap(first_ip, last_ip); in bitmap_ip_create()
293 first_ip &= ip_set_hostmask(netmask); in bitmap_ip_create()
[all …]
H A Dip_set_bitmap_ipmac.c71 return ip - m->first_ip; in ip_to_id()
195 htonl(map->first_ip + id)) || in bitmap_ipmac_do_list()
219 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ipmac_kadt()
265 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ipmac_uadt()
286 return x->first_ip == y->first_ip && in bitmap_ipmac_same_set()
305 map->first_ip = first_ip; in init_map_ipmac()
321 u32 first_ip = 0, last_ip = 0; in bitmap_ipmac_create() local
339 if (first_ip > last_ip) in bitmap_ipmac_create()
340 swap(first_ip, last_ip); in bitmap_ipmac_create()
346 ip_set_mask_from_to(first_ip, last_ip, cidr); in bitmap_ipmac_create()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/net/netfilter/ipset/
H A Dip_set_bitmap_ip.c97 htonl(map->first_ip + id * map->hosts)); in bitmap_ip_do_list()
121 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ip_kadt()
168 if (ip < map->first_ip) in bitmap_ip_uadt()
202 return x->first_ip == y->first_ip && in bitmap_ip_same_set()
220 u32 first_ip, u32 last_ip, in init_map_ip() argument
226 map->first_ip = first_ip; in init_map_ip()
257 u32 first_ip = 0, last_ip = 0, hosts; in bitmap_ip_create() local
275 if (first_ip > last_ip) in bitmap_ip_create()
276 swap(first_ip, last_ip); in bitmap_ip_create()
293 first_ip &= ip_set_hostmask(netmask); in bitmap_ip_create()
[all …]
H A Dip_set_bitmap_ipmac.c71 return ip - m->first_ip; in ip_to_id()
195 htonl(map->first_ip + id)) || in bitmap_ipmac_do_list()
219 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ipmac_kadt()
265 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ipmac_uadt()
286 return x->first_ip == y->first_ip && in bitmap_ipmac_same_set()
305 map->first_ip = first_ip; in init_map_ipmac()
321 u32 first_ip = 0, last_ip = 0; in bitmap_ipmac_create() local
339 if (first_ip > last_ip) in bitmap_ipmac_create()
340 swap(first_ip, last_ip); in bitmap_ipmac_create()
346 ip_set_mask_from_to(first_ip, last_ip, cidr); in bitmap_ipmac_create()
[all …]
/dports/net/dhcpd-pools/dhcpd-pools-3.1/tests/expected/
H A Dstatuses3 …{ "location":"example1", "range":"10.0.0.1 - 10.0.0.20", "first_ip":"10.0.0.1", "last_ip":"10.0.0.…
4 …{ "location":"example1", "range":"10.1.0.1 - 10.1.0.20", "first_ip":"10.1.0.1", "last_ip":"10.1.0.…
5 …{ "location":"example2", "range":"10.2.0.1 - 10.2.0.20", "first_ip":"10.2.0.1", "last_ip":"10.2.0.…
6 …{ "location":"example2", "range":"10.3.0.1 - 10.3.0.20", "first_ip":"10.3.0.1", "last_ip":"10.3.0.…
7 …{ "location":"10.4.0.0/24", "range":"10.4.0.1 - 10.4.0.20", "first_ip":"10.4.0.1", "last_ip":"10.4…
18 …{ "location":"example1", "range":"10.0.0.1 - 10.0.0.20", "first_ip":"10.0.0.1", "last_ip":"10.0.0.…
19 …{ "location":"example1", "range":"10.1.0.1 - 10.1.0.20", "first_ip":"10.1.0.1", "last_ip":"10.1.0.…
20 …{ "location":"example2", "range":"10.2.0.1 - 10.2.0.20", "first_ip":"10.2.0.1", "last_ip":"10.2.0.…
21 …{ "location":"example2", "range":"10.3.0.1 - 10.3.0.20", "first_ip":"10.3.0.1", "last_ip":"10.3.0.…
22 …{ "location":"10.4.0.0/24", "range":"10.4.0.1 - 10.4.0.20", "first_ip":"10.4.0.1", "last_ip":"10.4…
H A Dmustach55 first_ip: 10.0.0.1
70 first_ip: 10.1.0.1
85 first_ip: 10.2.0.1
100 first_ip: 10.3.0.1
115 first_ip: 10.4.0.1
235 first_ip: 10.0.0.1
250 first_ip: 10.1.0.1
265 first_ip: 10.3.0.1
/dports/net/p5-Net-Works/Net-Works-0.22/lib/Net/Works/
H A DNetwork.pm296 my $first_ip = shift;
300 $first_ip = Net::Works::Address->new_from_string(
301 string => $first_ip,
303 ) unless ref $first_ip;
311 $first_ip->as_integer(),
381 my $first_ip = shift;
392 next if ( $reserved_last <= $first_ip );
396 if $first_ip < $reserved_first;
403 $first_ip = $reserved_last + 1;
414 my $first_ip = shift;
[all …]
/dports/net/dhcpd-pools/dhcpd-pools-3.1/samples/
H A Dprometheus.template5 {{#subnets}}dhcpd_pools{location="{{location}}",range="{{first_ip}}",used="1"} {{used}} {{gettimeof…
6 dhcpd_pools{location="{{location}}",range="{{first_ip}}",touched="1"} {{touched}} {{gettimeofday}}0…
7 dhcpd_pools{location="{{location}}",range="{{first_ip}}",defined="1"} {{defined}} {{gettimeofday}}0…
8 dhcpd_pools{location="{{location}}",range="{{first_ip}}",free="1"} {{free}} {{gettimeofday}}000
9 dhcpd_pools{location="{{location}}",range="{{first_ip}}",touch_count="1"} {{touch_count}} {{gettime…
10 dhcpd_pools{location="{{location}}",range="{{first_ip}}",status="1"} {{status}} {{gettimeofday}}000
/dports/sysutils/nut-devel/nut-9e6a5ab2/tools/nut-scanner/
H A Dnutscan-ip.c252 char * first_ip; in nutscan_cidr_to_ip() local
269 first_ip = strdup(strtok_r(cidr_tok, "/", &saveptr)); in nutscan_cidr_to_ip()
270 if (first_ip == NULL) { in nutscan_cidr_to_ip()
279 __func__, cidr, first_ip); in nutscan_cidr_to_ip()
280 free (first_ip); in nutscan_cidr_to_ip()
285 __func__, cidr, first_ip, mask); in nutscan_cidr_to_ip()
309 if (getaddrinfo(first_ip, NULL, &hints, &res) != 0) { in nutscan_cidr_to_ip()
315 free(first_ip); in nutscan_cidr_to_ip()
376 free(first_ip); in nutscan_cidr_to_ip()
380 if (getaddrinfo(first_ip, NULL, &hints, &res) != 0) { in nutscan_cidr_to_ip()
[all …]
/dports/www/logtools/logtools-0.13e/
H A Dclfsplit.cpp164 unsigned int first_ip = 0; in process_spec() local
169 first_ip = inet_atoi(item); in process_spec()
170 second_ip = first_ip; in process_spec()
174 first_ip = inet_atoi(item); in process_spec()
180 first_ip = inet_atoi(item); in process_spec()
182 second_ip = first_ip + (1 << (32 - sub)) - 1; in process_spec()
186 new details(first_ip, second_ip, wrap, m); in process_spec()
/dports/sysutils/nut/nut-2.7.4/tools/nut-scanner/
H A Dnutscan-ip.c215 char * first_ip; in nutscan_cidr_to_ip() local
232 first_ip = strdup(strtok_r(cidr_tok,"/",&saveptr)); in nutscan_cidr_to_ip()
233 if( first_ip == NULL) { in nutscan_cidr_to_ip()
250 if(getaddrinfo(first_ip,NULL,&hints,&res) != 0) { in nutscan_cidr_to_ip()
255 if((ret=getaddrinfo(first_ip,NULL,&hints,&res)) != 0) { in nutscan_cidr_to_ip()
256 free(first_ip); in nutscan_cidr_to_ip()
299 free(first_ip); in nutscan_cidr_to_ip()
303 if(getaddrinfo(first_ip,NULL,&hints,&res) != 0) { in nutscan_cidr_to_ip()
336 free(first_ip); in nutscan_cidr_to_ip()
/dports/devel/libfastcommon/libfastcommon-1.0.43/src/
H A Dlocal_ip_func.c175 const char *first_ip; in get_first_local_ip() local
176 first_ip = get_next_local_ip(NULL); in get_first_local_ip()
177 if (first_ip != NULL) in get_first_local_ip()
179 return first_ip; in get_first_local_ip()
/dports/databases/phpmyadmin/phpMyAdmin-4.9.7-all-languages/libraries/classes/
H A DIpAllowDeny.php168 $first_ip = str_replace($range_match[0], $range_start, $test_range);
169 $first_hex = bin2hex(inet_pton($first_ip));
181 list($first_ip, $subnet) = explode('/', $test_range);
184 $first_bin = inet_pton($first_ip);
/dports/net/dhcpd-pools/dhcpd-pools-3.1/src/
H A Dgetdata.c183 if (ipcomp(&range_p->first_ip, &range_p->last_ip) > 0) { in reorder_last_first()
186 tmp = range_p->first_ip; in reorder_last_first()
187 range_p->first_ip = range_p->last_ip; in reorder_last_first()
276 range_p->last_ip = range_p->first_ip; in parse_config()
364 copy_ipaddr(&range_p->first_ip, &addr); in parse_config()
388 copy_ipaddr(&range_p->first_ip, &addr); in parse_config()
H A Dsort.c112 return ipcomp(&((const struct range_t *)r1)->first_ip, in rangecomp()
113 &((const struct range_t *)r2)->first_ip); in rangecomp()
136 return ipcomp(&r1->first_ip, &r2->first_ip); in comp_ip()
H A Danalyze.c69 while (l != NULL && ipcomp(&range_p->first_ip, &l->ip) < 0) in do_counting()
74 if (unlikely(ipcomp(&l->ip, &range_p->first_ip) < 0)) in do_counting()
/dports/databases/phpmyadmin5/phpMyAdmin-5.1.2-all-languages/libraries/classes/
H A DIpAllowDeny.php183 $first_ip = str_replace($range_match[0], $range_start, $test_range);
184 $first_hex = bin2hex((string) inet_pton($first_ip));
197 [$first_ip, $subnet] = explode('/', $test_range);
200 $first_bin = inet_pton($first_ip);
/dports/net-mgmt/glpi-plugins-fusioninventory-server/fusioninventory-for-glpi-glpi090-1.5/inc/
H A Dnetworkdiscovery.class.php367 $first_ip = $pfIPRange->getIp2long($pfIPRange->fields["ip_start"]);
369 $last_ip = long2ip($first_ip + $a_split[1]);
370 $first_ip = long2ip($first_ip + $a_split[0]);
371 if ($first_ip != '0.0.0.0'
373 $sxml_rangeip->addAttribute('IPSTART', $first_ip);
/dports/sysutils/pnscan/pnscan-1.14.1/
H A Dpnscan.c91 unsigned long first_ip = 0x00000000; variable
736 addr = cur_ip = first_ip; in r_worker()
962 unsigned long *first_ip, in get_ip_range() argument
980 *first_ip = ip+1; in get_ip_range()
993 if (get_host(first, first_ip) != 1) in get_ip_range()
996 *last_ip = *first_ip; in get_ip_range()
1000 if (get_host(first, first_ip) != 1) in get_ip_range()
1295 if (get_ip_range(argv[i], &first_ip, &last_ip) < 1) in main()
1309 cur_ip = first_ip; in main()
/dports/net/p5-Net-Works/Net-Works-0.22/t/
H A DNetwork-splitting.t512 my $first_ip = Net::Works::Address->new_from_string(
533 $first_ip,
565 my $first_ip = eval { $expect->first()->as_ipv4_string() }
571 "subnet first matches expected first - split $start - $end ($first_ip)"
H A DNetwork.t26 my $first_ip = $net->first();
28 $first_ip,
34 $first_ip->as_string(),
157 my $first_ip = $net->first();
159 $first_ip,
165 $first_ip->as_string(),
/dports/databases/percona57-server/percona-server-5.7.36-39/sql/
H A Dsp_rcontext.h98 uint first_ip; variable
105 :handler(_handler), first_ip(_first_ip) in sp_handler_entry()
189 bool push_handler(sp_handler *handler, uint first_ip);
/dports/databases/percona57-client/percona-server-5.7.36-39/sql/
H A Dsp_rcontext.h98 uint first_ip; variable
105 :handler(_handler), first_ip(_first_ip) in sp_handler_entry()
189 bool push_handler(sp_handler *handler, uint first_ip);

1234