Home
last modified time | relevance | path

Searched refs:ocets (Results 1 – 2 of 2) sorted by relevance

/external/dhcpcd/
Ddhcp.c442 uint8_t ocets; in decode_rfc3442() local
459 ocets = (cidr + 7) / 8; in decode_rfc3442()
461 p += 4 + ocets; in decode_rfc3442()
474 if (ocets > 0) { in decode_rfc3442()
476 memcpy(&addr.s_addr, p, (size_t)ocets); in decode_rfc3442()
478 p += ocets; in decode_rfc3442()
503 uint8_t ocets; in decode_rfc3442_rt() local
528 ocets = (cidr + 7) / 8; in decode_rfc3442_rt()
530 if (ocets > 0) { in decode_rfc3442_rt()
531 memcpy(&rt->dest.s_addr, p, (size_t)ocets); in decode_rfc3442_rt()
[all …]
Dnet.c86 int ocets; in inet_cidrtoaddr() local
92 ocets = (cidr + 7) / 8; in inet_cidrtoaddr()
95 if (ocets > 0) { in inet_cidrtoaddr()
96 memset(&addr->s_addr, 255, (size_t)ocets - 1); in inet_cidrtoaddr()
97 memset((unsigned char *)&addr->s_addr + (ocets - 1), in inet_cidrtoaddr()