Home
last modified time | relevance | path

Searched refs:INADDRSZ (Results 1 – 8 of 8) sorted by relevance

/external/curl/lib/
Dinet_pton.c36 #define INADDRSZ 4 macro
97 unsigned char tmp[INADDRSZ], *tp; in inet_pton4()
132 memcpy(dst, tmp, INADDRSZ); in inet_pton4()
199 if(ch == '.' && ((tp + INADDRSZ) <= endp) && in inet_pton6()
201 tp += INADDRSZ; in inet_pton6()
Dinet_ntop.c39 #define INADDRSZ 4 macro
/external/dnsmasq/src/
Drfc2131.c183 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 …]
Drfc1035.c446 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()
874 memcpy(p, sval, INADDRSZ); in add_resource_record()
875 p += INADDRSZ; in add_resource_record()
Dcache.c243 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()
Dnameser.h109 #define INADDRSZ 4 /* IPv4 T_A */ macro
Doption.c802 memcpy(op, &in, INADDRSZ); in parse_dhcp_opt()
803 op += INADDRSZ; in parse_dhcp_opt()
/external/ltp/testcases/network/multicast/mc_gethost/
Dmc_gethost.c31 int size = INADDRSZ; in main()