Lines Matching refs:sll
190 struct sockaddr_ll sll; in send_probe() local
224 sll.sll_family = AF_PACKET; in send_probe()
225 memset(sll.sll_addr, 0xFF, sizeof(sll.sll_addr)); in send_probe()
226 sll.sll_ifindex = ifindex; in send_probe()
227 sll.sll_protocol = htons(ETH_P_ARP); in send_probe()
228 memcpy(p, &sll.sll_addr, ah->ar_hln); in send_probe()
234 if (sendto(pset[0].fd, buf, p-buf, 0, (struct sockaddr*)&sll, sizeof(sll)) < 0) in send_probe()
488 struct sockaddr_ll sll; in get_arp_pkt() local
489 socklen_t sll_len = sizeof(sll); in get_arp_pkt()
496 (struct sockaddr*)&sll, &sll_len); in get_arp_pkt()
503 if (ifnum && !handle_if(sll.sll_ifindex)) in get_arp_pkt()
513 a->ar_hln != sll.sll_halen || in get_arp_pkt()
517 key.iface = sll.sll_ifindex; in get_arp_pkt()
771 struct sockaddr_ll sll; in main() local
772 memset(&sll, 0, sizeof(sll)); in main()
773 sll.sll_family = AF_PACKET; in main()
774 sll.sll_protocol = htons(ETH_P_ARP); in main()
775 sll.sll_ifindex = (ifnum == 1 ? ifvec[0] : 0); in main()
776 if (bind(pset[0].fd, (struct sockaddr*)&sll, sizeof(sll)) < 0) { in main()