diff options
author | Tom Gundersen <teg@jklm.no> | 2014-04-01 21:29:20 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-04-01 21:29:56 +0200 |
commit | bcf3ce7b39529eb5421aa45d6336c9b12f8594c0 (patch) | |
tree | 0f1c59ef836555cb8ca6dbee134c83c8508e5516 /src/libsystemd-network/ipv4ll-network.c | |
parent | 0ef298ab47439ee221c011eb602dc1607ddd11e9 (diff) |
sd-ipv4ll: speed up bind() in the same way as for dhcp
Diffstat (limited to 'src/libsystemd-network/ipv4ll-network.c')
-rw-r--r-- | src/libsystemd-network/ipv4ll-network.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/ipv4ll-network.c b/src/libsystemd-network/ipv4ll-network.c index 68666fb71d..1ebf4ac817 100644 --- a/src/libsystemd-network/ipv4ll-network.c +++ b/src/libsystemd-network/ipv4ll-network.c @@ -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; |