Home
last modified time | relevance | path

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

/external/ltp/testcases/network/stress/ns-tools/
Dns-icmp_redirector.c286 struct arp_datagram *sndarp_p; /* ARP part of sending frame */ in return_arp_reply() local
322 sndarp_p = (struct arp_datagram *)&(sndeth.data); in return_arp_reply()
331 sndarp_p->hdr.ar_hrd = htons(ARPHRD_ETHER); in return_arp_reply()
332 sndarp_p->hdr.ar_pro = htons(ETH_P_IP); in return_arp_reply()
333 sndarp_p->hdr.ar_hln = ETH_ALEN; in return_arp_reply()
334 sndarp_p->hdr.ar_pln = 4; in return_arp_reply()
335 sndarp_p->hdr.ar_op = htons(ARPOP_REPLY); in return_arp_reply()
336 memcpy(sndarp_p->ar_sha, gateway_p->hd_addr, ETH_ALEN); in return_arp_reply()
337 memcpy(sndarp_p->ar_sip, gateway_p->ip_addr, 4); in return_arp_reply()
338 memcpy(sndarp_p->ar_tha, rcvarp_p->ar_sha, ETH_ALEN); in return_arp_reply()
[all …]