Home
last modified time | relevance | path

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

/external/dhcpcd-6.8.2/
Dipv4.c76 int ocets; in inet_cidrtoaddr() local
82 ocets = (cidr + 7) / NBBY; in inet_cidrtoaddr()
85 if (ocets > 0) { in inet_cidrtoaddr()
86 memset(&addr->s_addr, 255, (size_t)ocets - 1); in inet_cidrtoaddr()
87 memset((unsigned char *)&addr->s_addr + (ocets - 1), in inet_cidrtoaddr()
Ddhcp.c292 size_t bytes = 0, ocets; in decode_rfc3442() local
311 ocets = (size_t)(cidr + 7) / NBBY; in decode_rfc3442()
312 if (p + 4 + ocets > e) { in decode_rfc3442()
317 p += 4 + ocets; in decode_rfc3442()
330 if (ocets > 0) { in decode_rfc3442()
332 memcpy(&addr.s_addr, p, ocets); in decode_rfc3442()
334 p += ocets; in decode_rfc3442()
359 size_t ocets; in decode_rfc3442_rt() local
378 ocets = (size_t)(cidr + 7) / NBBY; in decode_rfc3442_rt()
379 if (p + 4 + ocets > e) { in decode_rfc3442_rt()
[all …]