Home
last modified time | relevance | path

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

/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/toybox/toys/pending/
Darping.c106 arp_h->ar_hln = src_pk.sll_halen; in send_packet()
144 || (arp_hdr->ar_hln != src_pk.sll_halen) in recv_from()
145 || (*recv_len < (int)(sizeof(*arp_hdr) + 2 * (4 + arp_hdr->ar_hln)))) in recv_from()
148 memcpy(&s_ip.s_addr, p + arp_hdr->ar_hln, 4); in recv_from()
149 memcpy(&d_ip.s_addr, p + arp_hdr->ar_hln + 4 + arp_hdr->ar_hln, 4); in recv_from()
/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()
224 memcpy(p, &sll.sll_addr, ah->ar_hln); in send_probe()
225 p += ah->ar_hln; in send_probe()
506 a->ar_hln != sll.sll_halen || in get_arp_pkt()
507 sizeof(*a) + 2*4 + 2*a->ar_hln > n) in get_arp_pkt()
511 memcpy(&key.addr, (char *)(a+1) + a->ar_hln, 4); in get_arp_pkt()
529 dbdat.size = a->ar_hln; in get_arp_pkt()
/external/u-boot/net/
Drarp.c41 (arp->ar_hln != 6) || (arp->ar_pln != 4)) { in rarp_receive()
85 rarp->ar_hln = 6; in rarp_request()
Darp.c69 arp->ar_hln = ARP_HLEN; in arp_raw_request()
150 if (arp->ar_hln != ARP_HLEN) in arp_receive()
/external/tcpdump/
Dprint-arp.c60 u_char ar_hln; /* length of hardware address */ member
82 #define ar_spa(ap) (((const u_char *)((ap)+1))+ (ap)->ar_hln)
83 #define ar_tha(ap) (((const u_char *)((ap)+1))+ (ap)->ar_hln+(ap)->ar_pln)
84 #define ar_tpa(ap) (((const u_char *)((ap)+1))+2*(ap)->ar_hln+(ap)->ar_pln)
90 #define HRD_LEN(ap) ((ap)->ar_hln)
/external/iptables/iptables/
Dnft-arp.c165 add_proto(r, offsetof(struct arphdr, ar_hln), 1, in nft_arp_add()
319 uint8_t ar_hln; in nft_arp_parse_payload() local
344 case offsetof(struct arphdr, ar_hln): in nft_arp_parse_payload()
345 get_cmp_data(e, &ar_hln, sizeof(ar_hln), &inv); in nft_arp_parse_payload()
346 fw->arp.arhln = ar_hln; in nft_arp_parse_payload()
/external/libnl/include/linux-private/linux/
Dif_arp.h140 unsigned char ar_hln; /* length of hardware address */ member
/external/iproute2/include/uapi/linux/
Dif_arp.h147 unsigned char ar_hln; /* length of hardware address */ member
/external/kernel-headers/original/uapi/linux/
Dif_arp.h147 unsigned char ar_hln; /* length of hardware address */ member
/external/u-boot/drivers/net/
Dsandbox.c90 arp_recv->ar_hln = ARP_HLEN; in sandbox_eth_arp_req_to_reply()
189 arp_recv->ar_hln = ARP_HLEN; in sandbox_eth_recv_arp_req()
Dsandbox-raw.c87 arp->ar_hln = ARP_HLEN; in sb_eth_raw_recv()
/external/rust/crates/libc/src/unix/bsd/netbsdlike/netbsd/
Dmod.rs349 pub ar_hln: u8,
554 && self.ar_hln == other.ar_hln
568 .field("ar_hln", &self.ar_hln)
581 self.ar_hln.hash(state);
/external/u-boot/test/dm/
Deth.c290 ut_assert(arp->ar_hln == ARP_HLEN); in sb_check_arp_reply()
/external/u-boot/include/
Dnet.h406 u8 ar_hln; /* Length of hardware address */ member
/external/ltp/testcases/network/stress/ns-tools/
Dns-icmp_redirector.c333 sndarp_p->hdr.ar_hln = ETH_ALEN; in return_arp_reply()
/external/rust/crates/libc/src/unix/bsd/netbsdlike/openbsd/
Dmod.rs305 pub ar_hln: u8,
/external/rust/crates/libc/src/unix/bsd/freebsdlike/
Dmod.rs189 pub ar_hln: u8,
/external/rust/crates/libc/src/unix/linux_like/
Dmod.rs193 pub ar_hln: u8,
/external/rust/crates/libc/src/unix/bsd/apple/
Dmod.rs488 pub ar_hln: u8,