[systemd-commits] src/libsystemd-network
Tom Gundersen
tomegun at kemper.freedesktop.org
Tue Apr 1 12:30:14 PDT 2014
src/libsystemd-network/ipv4ll-network.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit bcf3ce7b39529eb5421aa45d6336c9b12f8594c0
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Apr 1 21:29:20 2014 +0200
sd-ipv4ll: speed up bind() in the same way as for dhcp
diff --git a/src/libsystemd-network/ipv4ll-network.c b/src/libsystemd-network/ipv4ll-network.c
index 68666fb..1ebf4ac 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;
More information about the systemd-commits
mailing list