Home
last modified time | relevance | path

Searched refs:cidr (Results 1 – 5 of 5) sorted by relevance

/external/dhcpcd/
Dnet.c95 int cidr = 0; in inet_ntocidr() local
99 cidr++; in inet_ntocidr()
102 return cidr; in inet_ntocidr()
106 inet_cidrtoaddr(int cidr, struct in_addr *addr) in inet_cidrtoaddr() argument
110 if (cidr < 1 || cidr > 32) { in inet_cidrtoaddr()
114 ocets = (cidr + 7) / 8; in inet_cidrtoaddr()
120 (256 - (1 << (32 - cidr) % 8)), 1); in inet_cidrtoaddr()
Ddhcp.c501 uint8_t cidr; in decode_rfc3442() local
513 cidr = *p++; in decode_rfc3442()
514 if (cidr > 32) { in decode_rfc3442()
518 ocets = (cidr + 7) / 8; in decode_rfc3442()
536 b = snprintf(o, len, "%s/%d", inet_ntoa(addr), cidr); in decode_rfc3442()
561 uint8_t cidr; in decode_rfc3442_rt() local
572 cidr = *p++; in decode_rfc3442_rt()
573 if (cidr > 32) { in decode_rfc3442_rt()
587 ocets = (cidr + 7) / 8; in decode_rfc3442_rt()
592 rt->net.s_addr = htonl(~0U << (32 - cidr)); in decode_rfc3442_rt()
[all …]
/external/android-clat/
Dsetif.h21 int add_address(const char *ifname, int family, const void *address, int cidr, const void *broadcas…
/external/iptables/libxtables/
Dxtables.c1243 uint32_t cidr; in xtables_ipmask_to_numeric() local
1245 cidr = xtables_ipmask_to_cidr(mask); in xtables_ipmask_to_numeric()
1246 if (cidr < 0) { in xtables_ipmask_to_numeric()
1250 } else if (cidr == 32) { in xtables_ipmask_to_numeric()
1255 sprintf(buf, "/%d", cidr); in xtables_ipmask_to_numeric()
/external/ipsec-tools/src/racoon/
Disakmp_cfg.c1880 int cidr, tmp; local
1942 for (cidr = 0; tmp != 0; cidr++)
1944 snprintf(cidrstr, 3, "%d", cidr);