Home
last modified time | relevance | path

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

/external/ltp/testcases/network/stress/ns-tools/
Dns-icmpv4_sender.c61 struct sockaddr_ll saddr_ll; member
322 fake_p->saddr_ll.sll_family = AF_PACKET; /* Always AF_PACKET */ in complete_eth_addrs()
323 fake_p->saddr_ll.sll_protocol = htons(ETH_P_IP); /* IPv4 */ in complete_eth_addrs()
324 fake_p->saddr_ll.sll_hatype = ARPHRD_ETHER; /* Header type */ in complete_eth_addrs()
325 fake_p->saddr_ll.sll_pkttype = PACKET_HOST; /* Packet type */ in complete_eth_addrs()
326 fake_p->saddr_ll.sll_halen = ETH_ALEN; /* Length of address */ in complete_eth_addrs()
330 memcpy(fake_p->saddr_ll.sll_addr, ifinfo.ifr_hwaddr.sa_data, ETH_ALEN); in complete_eth_addrs()
334 fake_p->saddr_ll.sll_ifindex = ifinfo.ifr_ifindex; in complete_eth_addrs()
557 retval = bind(sock_fd, (struct sockaddr *)&(fake_p->saddr_ll), in send_packets()
Dns-icmpv6_sender.c61 struct sockaddr_ll saddr_ll; member
582 specify_hw_addr(&info_p->saddr_ll, ifname); in parse_options()
727 retval = bind(sock_fd, (struct sockaddr *)&(info_p->saddr_ll), in send_packets()