Home
last modified time | relevance | path

Searched refs:cidr (Results 1 – 3 of 3) 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.c497 uint8_t cidr; in decode_rfc3442() local
509 cidr = *p++; in decode_rfc3442()
510 if (cidr > 32) { in decode_rfc3442()
514 ocets = (cidr + 7) / 8; in decode_rfc3442()
532 b = snprintf(o, len, "%s/%d", inet_ntoa(addr), cidr); in decode_rfc3442()
557 uint8_t cidr; in decode_rfc3442_rt() local
568 cidr = *p++; in decode_rfc3442_rt()
569 if (cidr > 32) { in decode_rfc3442_rt()
583 ocets = (cidr + 7) / 8; in decode_rfc3442_rt()
588 rt->net.s_addr = htonl(~0U << (32 - cidr)); in decode_rfc3442_rt()
[all …]
/external/ipsec-tools/src/racoon/
Disakmp_cfg.c1876 int cidr, tmp; local
1938 for (cidr = 0; tmp != 0; cidr++)
1940 snprintf(cidrstr, 3, "%d", cidr);