sd-ipv4ll: speed up bind() in the same way as for dhcp

This commit is contained in:
Tom Gundersen 2014-04-01 21:29:20 +02:00
parent 0ef298ab47
commit bcf3ce7b39

View file

@ -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;