summaryrefslogtreecommitdiffstats
path: root/arp.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-27 11:31:01 +0000
committerRoy Marples <roy@marples.name>2008-01-27 11:31:01 +0000
commit8404debd0687f23f35e44a11a66073a6ca362e63 (patch)
treea6cfe40074af2dc966c251d5c12f01b3331aaae6 /arp.c
parent13be7b8d0159b738e74546333fafe12ca1a3cd6a (diff)
downloaddhcpcd-8404debd0687f23f35e44a11a66073a6ca362e63.tar.xz
Linux has LPF, which is almost like BPF. Let's use and let the kernel filter out what we don't need.
Diffstat (limited to 'arp.c')
-rw-r--r--arp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arp.c b/arp.c
index 3b4ea750..e427fa99 100644
--- a/arp.c
+++ b/arp.c
@@ -133,7 +133,7 @@ int arp_claim (interface_t *iface, struct in_addr address)
"checking %s is available on attached networks",
inet_ntoa (address));
- if (! open_socket (iface, true))
+ if (! open_socket (iface, ETHERTYPE_ARP))
return (-1);
memset (&null_address, 0, sizeof (struct in_addr));