Lines Matching defs:su
64 sockunion su;
65 memset(&su, 0, sizeof(su));
66 su.sll.sll_family = PF_PACKET;
67 su.sll.sll_protocol = htons(protocolType);
68 su.sll.sll_ifindex = if_nametoindex(ifname.c_str());
84 int err = bind(sock, &su.sa, sizeof(su));
123 sockunion su;
124 memset(&su, 0, sizeof(su));
125 su.sll.sll_hatype = htons(1); // ARPHRD_ETHER
126 su.sll.sll_halen = mac.size();
127 memcpy(&su.sll.sll_addr, mac.get(), mac.size());
128 su.sll.sll_family = AF_PACKET;
129 su.sll.sll_protocol = htons(protocolType);
130 su.sll.sll_ifindex = if_nametoindex(ifname.c_str());
137 byteCount, 0, &su.sa, sizeof(su)));