/src/sbin/ifconfig/ |
af_inet.c | 92 int cidr; local in function:in_prefixlen 98 cidr = 33 - ffs(mask); /* 33 - (1 .. 32) -> 32 .. 1 */ 100 if (cidr < 32) { /* more than 1 bit in mask */ 102 if ((mask ^ (((1U << cidr) - 1) << (32 - cidr))) != 0) 106 return cidr;
|
/src/usr.bin/rump_dhcpclient/ |
net.c | 78 int cidr = 0; local in function:inet_ntocidr 82 cidr++; 85 return cidr; 89 inet_cidrtoaddr(int cidr, struct in_addr *addr) 93 if (cidr < 1 || cidr > 32) { 97 ocets = (cidr + 7) / 8; 103 (256 - (1 << (32 - cidr) % 8)), 1);
|
dhcp.c | 339 uint8_t cidr; local in function:decode_rfc3442_rt 344 /* Minimum is 5 -first is CIDR and a router length of 4 */ 350 cidr = *p++; 351 if (cidr > 32) { 365 ocets = (cidr + 7) / 8; 370 rt->net.s_addr = htonl(~0U << (32 - cidr));
|
/src/sys/arch/arm/at91/ |
at91bus.c | 153 uint32_t cidr; member in struct:__anona47f4a3f0108 197 uint32_t cidr; local in function:match_cid 201 cidr = DBGUREG(DBGU_CIDR); 202 at91_chip_id = cidr; 206 if (cidr == at91_types[i].cidr)
|
/src/usr.sbin/wgconfig/ |
wgconfig.c | 149 uint8_t cidr; local in function:handle_allowed_ips 166 if (!prop_dictionary_get_uint8(allowedip, "cidr", &cidr)) { 167 warnx("allowed-ip without cidr"); 196 printf("%s%s/%u", first ? "" : ",", ntopbuf, cidr); 594 uint16_t cidr; local in function:handle_option_allowed_ips 609 cidr = strtouint16(cidrp); 647 if (!prop_dictionary_set_uint16(prop_allowedip, "cidr", cidr))
|