mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
dhcp: sync with gdhcp
Copy over recent changes to gdhcp from ConnMan. We should really start exporting sd-dhcp from libsystemd so we can finally drop this alltogether. Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
parent
eecf576fa9
commit
7c87510b34
4 changed files with 209 additions and 187 deletions
|
|
@ -122,10 +122,13 @@ int ipv4ll_arp_socket(int ifindex)
|
|||
{
|
||||
int fd;
|
||||
struct sockaddr_ll sock;
|
||||
|
||||
fd = socket(PF_PACKET, SOCK_DGRAM | SOCK_CLOEXEC, htons(ETH_P_ARP));
|
||||
if (fd < 0)
|
||||
return fd;
|
||||
|
||||
memset(&sock, 0, sizeof(sock));
|
||||
|
||||
sock.sll_family = AF_PACKET;
|
||||
sock.sll_protocol = htons(ETH_P_ARP);
|
||||
sock.sll_ifindex = ifindex;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue