sd-ipv4ll: speed up bind() in the same way as for dhcp
This commit is contained in:
parent
0ef298ab47
commit
bcf3ce7b39
|
@ -38,7 +38,7 @@ int arp_network_bind_raw_socket(int index, union sockaddr_union *link) {
|
|||
assert(index > 0);
|
||||
assert(link);
|
||||
|
||||
s = socket(PF_PACKET, SOCK_DGRAM | SOCK_CLOEXEC | SOCK_NONBLOCK, htons(ETH_P_ARP));
|
||||
s = socket(PF_PACKET, SOCK_DGRAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0);
|
||||
if (s < 0)
|
||||
return -errno;
|
||||
|
||||
|
|
Loading…
Reference in a new issue