Lines Matching refs:laddr
172 struct sockaddr_ll laddr = {0}; in do_bind() local
174 laddr.sll_family = AF_PACKET; in do_bind()
175 laddr.sll_protocol = htons(ETH_P_IP); in do_bind()
176 laddr.sll_ifindex = if_nametoindex(cfg_ifname); in do_bind()
177 if (!laddr.sll_ifindex) in do_bind()
180 if (bind(fd, (void *)&laddr, sizeof(laddr))) in do_bind()
200 struct sockaddr_ll laddr = {0}; in do_send() local
202 laddr.sll_protocol = htons(ETH_P_IP); in do_send()
203 laddr.sll_ifindex = if_nametoindex(cfg_ifname); in do_send()
204 if (!laddr.sll_ifindex) in do_send()
207 ret = sendto(fd, buf, len, 0, (void *)&laddr, sizeof(laddr)); in do_send()