Home
last modified time | relevance | path

Searched refs:arp_hdr (Results 1 - 3 of 3) sorted by relevance

/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/
H A Dlayout_arp.rs131 pub struct arp_hdr { structure names
141 const UNINIT: ::std::mem::MaybeUninit<arp_hdr> = in bindgen_test_layout_arp_hdr()
145 ::std::mem::size_of::<arp_hdr>(), in bindgen_test_layout_arp_hdr()
147 concat!("Size of: ", stringify!(arp_hdr)) in bindgen_test_layout_arp_hdr()
150 ::std::mem::align_of::<arp_hdr>(), in bindgen_test_layout_arp_hdr()
152 concat!("Alignment of ", stringify!(arp_hdr)) in bindgen_test_layout_arp_hdr()
159 stringify!(arp_hdr), in bindgen_test_layout_arp_hdr()
169 stringify!(arp_hdr), in bindgen_test_layout_arp_hdr()
179 stringify!(arp_hdr), in bindgen_test_layout_arp_hdr()
189 stringify!(arp_hdr), in bindgen_test_layout_arp_hdr()
[all...]
/third_party/toybox/toys/pending/
H A Darping.c134 struct arphdr *arp_hdr = (struct arphdr *)toybuf; in recv_from() local
135 unsigned char *p = (unsigned char *)(arp_hdr + 1); in recv_from()
137 if (arp_hdr->ar_op != htons(ARPOP_REQUEST) && in recv_from()
138 arp_hdr->ar_op != htons(ARPOP_REPLY)) return; in recv_from()
143 if (arp_hdr->ar_pro != htons(ETH_P_IP) || (arp_hdr->ar_pln != 4) in recv_from()
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 in recv_from()
[all...]
/third_party/rust/crates/bindgen/bindgen-tests/tests/headers/
H A Dlayout_arp.h36 struct arp_hdr { struct

Completed in 2 milliseconds