Home
last modified time | relevance | path

Searched refs:ar_hln (Results 1 – 10 of 10) sorted by relevance

/external/dhcpcd/
Darp.c58 ar.ar_hln = iface->hwlen; in send_arp()
141 hw_t = hw_s + ar.ar_hln + ar.ar_pln; in handle_arp_packet()
143 if ((hw_t + ar.ar_hln + ar.ar_pln) - arp_buffer > bytes) in handle_arp_packet()
146 if (ar.ar_hln == iface->hwlen && in handle_arp_packet()
150 memcpy(&reply_s, hw_s + ar.ar_hln, ar.ar_pln); in handle_arp_packet()
151 memcpy(&reply_t, hw_t + ar.ar_hln, ar.ar_pln); in handle_arp_packet()
162 (size_t)ar.ar_hln); in handle_arp_packet()
191 (size_t)ar.ar_hln), in handle_arp_packet()
/external/iputils/
Darping.c283 ah->ar_hln = ME->sll_halen; in send_pack()
287 memcpy(p, &ME->sll_addr, ah->ar_hln); in send_pack()
294 memcpy(p, &ME->sll_addr, ah->ar_hln); in send_pack()
296 memcpy(p, &HE->sll_addr, ah->ar_hln); in send_pack()
297 p+=ah->ar_hln; in send_pack()
303 err = sendto(s, buf, p-buf, 0, (struct sockaddr*)HE, SLL_LEN(ah->ar_hln)); in send_pack()
406 if (ah->ar_hln != ((struct sockaddr_ll *)&me)->sll_halen) in recv_pack()
408 if (len < sizeof(*ah) + 2*(4 + ah->ar_hln)) in recv_pack()
410 memcpy(&src_ip, p+ah->ar_hln, 4); in recv_pack()
411 memcpy(&dst_ip, p+ah->ar_hln+4+ah->ar_hln, 4); in recv_pack()
[all …]
Drarpd.c491 if (a->ar_hln != sll.sll_halen) { in serve_it()
496 if (sizeof(*a) + 2*4 + 2*a->ar_hln > n) { in serve_it()
/external/iproute2/misc/
Darpd.c213 ah->ar_hln = 6; in send_probe()
217 memcpy(p, ifr.ifr_hwaddr.sa_data, ah->ar_hln); in send_probe()
218 p += ah->ar_hln; in send_probe()
227 memcpy(p, &sll.sll_addr, ah->ar_hln); in send_probe()
228 p+=ah->ar_hln; in send_probe()
508 a->ar_hln != sll.sll_halen || in get_arp_pkt()
509 sizeof(*a) + 2*4 + 2*a->ar_hln > n) in get_arp_pkt()
513 memcpy(&key.addr, (char*)(a+1) + a->ar_hln, 4); in get_arp_pkt()
531 dbdat.size = a->ar_hln; in get_arp_pkt()
/external/tcpdump/
Dprint-arp.c62 u_char ar_hln; /* length of hardware address */ member
84 #define ar_spa(ap) (((const u_char *)((ap)+1))+ (ap)->ar_hln)
85 #define ar_tha(ap) (((const u_char *)((ap)+1))+ (ap)->ar_hln+(ap)->ar_pln)
86 #define ar_tpa(ap) (((const u_char *)((ap)+1))+2*(ap)->ar_hln+(ap)->ar_pln)
92 #define HRD_LEN(ap) ((ap)->ar_hln)
/external/libnl/include/linux/
Dif_arp.h133 unsigned char ar_hln; /* length of hardware address */ member
/external/iproute2/include/linux/
Dif_arp.h140 unsigned char ar_hln; /* length of hardware address */ member
/external/kernel-headers/original/uapi/linux/
Dif_arp.h144 unsigned char ar_hln; /* length of hardware address */ member
/external/qemu/slirp/
Dslirp.c584 unsigned char ar_hln; /* length of hardware address */ member
630 rah->ar_hln = ETH_ALEN; in arp_input()
712 rah->ar_hln = ETH_ALEN; in if_encap()
/external/qemu/slirp-android/
Dslirp.c673 unsigned char ar_hln; /* length of hardware address */ member
723 rah->ar_hln = ETH_ALEN; in arp_input()
805 rah->ar_hln = ETH_ALEN; in if_encap()