Home
last modified time | relevance | path

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

/external/ltp/testcases/network/stress/ns-tools/
Dns-icmp_redirector.c282 unsigned char new_hd_addr[ETH_ALEN]; /* New MAC address */ in return_arp_reply() local
298 memset(new_hd_addr, '\0', ETH_ALEN); /* MAC address */ in return_arp_reply()
300 new_hd_addr[3] = rand_within(0, 254); in return_arp_reply()
301 new_hd_addr[4] = rand_within(0, 254); in return_arp_reply()
302 new_hd_addr[5] = rand_within(1, 254); in return_arp_reply()
303 if (memcmp(gateway_p->hd_addr, new_hd_addr, ETH_ALEN)) { in return_arp_reply()
304 memcpy(gateway_p->hd_addr, new_hd_addr, ETH_ALEN); in return_arp_reply()
466 unsigned char new_hd_addr[ETH_ALEN]; /* new MAC address */ in return_neigh_adv() local
488 memset(new_hd_addr, '\0', ETH_ALEN); /* MAC address */ in return_neigh_adv()
490 new_hd_addr[3] = rand_within(0, 254); in return_neigh_adv()
[all …]