Searched refs:bindaddr (Results 1 - 1 of 1) sorted by relevance

/system/core/libnetutils/
H A Dpacket.c45 struct sockaddr_ll bindaddr; local
51 memset(&bindaddr, 0, sizeof(bindaddr));
52 bindaddr.sll_family = AF_PACKET;
53 bindaddr.sll_protocol = htons(ETH_P_IP);
54 bindaddr.sll_halen = ETH_ALEN;
55 memcpy(bindaddr.sll_addr, hwaddr, ETH_ALEN);
56 bindaddr.sll_ifindex = if_index;
58 if (bind(s, (struct sockaddr *)&bindaddr, sizeof(bindaddr)) <
[all...]

Completed in 24 milliseconds