Searched refs:INADDRSZ (Results 1 – 7 of 7) sorted by relevance
/external/curl/lib/ |
D | inet_pton.c | 36 #define INADDRSZ 4 macro 97 unsigned char tmp[INADDRSZ], *tp; in inet_pton4() 132 memcpy(dst, tmp, INADDRSZ); in inet_pton4() 200 if(ch == '.' && ((tp + INADDRSZ) <= endp) && in inet_pton6() 202 tp += INADDRSZ; in inet_pton6()
|
D | inet_ntop.c | 39 #define INADDRSZ 4 macro
|
/external/dnsmasq/src/ |
D | rfc2131.c | 183 if ((option_find(mess, sz, OPTION_REQUESTED_IP, INADDRSZ) || mess_type == DHCPDISCOVER)) in dhcp_reply() 203 SUBOPT_SUBNET_SELECT, INADDRSZ))) in dhcp_reply() 208 SUBOPT_SERVER_OR, INADDRSZ))) in dhcp_reply() 236 … if (subnet_addr.s_addr == 0 && (opt = option_find(mess, sz, OPTION_SUBNET_SELECT, INADDRSZ))) in dhcp_reply() 674 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, htonl(context->local.s_addr)); in dhcp_reply() 717 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, in dhcp_reply() 742 if (!(opt = option_find(mess, sz, OPTION_SERVER_IDENTIFIER, INADDRSZ)) || in dhcp_reply() 749 if (!(opt = option_find(mess, sz, OPTION_REQUESTED_IP, INADDRSZ))) return 0; in dhcp_reply() 770 !(opt = option_find(mess, sz, OPTION_SERVER_IDENTIFIER, INADDRSZ)) || in dhcp_reply() 792 if ((opt = option_find(mess, sz, OPTION_REQUESTED_IP, INADDRSZ))) in dhcp_reply() [all …]
|
D | rfc1035.c | 446 if (!CHECK_LEN(header, p, qlen, INADDRSZ)) return 0; in do_doctor() 449 memcpy(&addr, p, INADDRSZ); in do_doctor() 462 memcpy(p, &addr, INADDRSZ); in do_doctor() 609 addrlen = INADDRSZ; in extract_addresses() 820 if (!CHECK_LEN(header, p, qlen, INADDRSZ)) return 0; in check_for_bogus_wildcard() 823 if (memcmp(&baddrp->addr, p, INADDRSZ) == 0) { in check_for_bogus_wildcard() 882 CHECK_LIMIT(INADDRSZ); in add_resource_record() 884 memcpy(p, sval, INADDRSZ); in add_resource_record() 885 p += INADDRSZ; in add_resource_record()
|
D | cache.c | 243 int addrlen = (flags & F_IPV6) ? IN6ADDRSZ : INADDRSZ; in cache_scan_free() 245 int addrlen = INADDRSZ; in cache_scan_free() 478 int addrlen = (prot == F_IPV6) ? IN6ADDRSZ : INADDRSZ; in cache_find_by_addr() 480 int addrlen = INADDRSZ; in cache_find_by_addr() 637 addrlen = INADDRSZ; in read_hostsfile() 647 addrlen = INADDRSZ; in read_hostsfile()
|
D | nameser.h | 109 #define INADDRSZ 4 /* IPv4 T_A */ macro
|
D | option.c | 802 memcpy(op, &in, INADDRSZ); in parse_dhcp_opt() 803 op += INADDRSZ; in parse_dhcp_opt()
|