chiark / gitweb /
sd-ipv4ll: speed up bind() in the same way as for dhcp
authorTom Gundersen <teg@jklm.no>
Tue, 1 Apr 2014 19:29:20 +0000 (21:29 +0200)
committerTom Gundersen <teg@jklm.no>
Tue, 1 Apr 2014 19:29:56 +0000 (21:29 +0200)
src/libsystemd-network/ipv4ll-network.c

index 68666fb71dd556bc8da157b74ef49d76fb7b3378..1ebf4ac81797c9d881afa2e1dedf022bb78ea45f 100644 (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;