summaryrefslogtreecommitdiff
path: root/usr.sbin/ipsend/common/44arp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ipsend/common/44arp.c')
-rw-r--r--usr.sbin/ipsend/common/44arp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.sbin/ipsend/common/44arp.c b/usr.sbin/ipsend/common/44arp.c
index 290e676d514..751a03549d3 100644
--- a/usr.sbin/ipsend/common/44arp.c
+++ b/usr.sbin/ipsend/common/44arp.c
@@ -1,3 +1,5 @@
+/* $OpenBSD: 44arp.c,v 1.3 2001/01/17 06:01:24 fgsch Exp $ */
+
/*
* Based upon 4.4BSD's /usr/sbin/arp
*/
@@ -26,6 +28,7 @@
# include <net/if_var.h>
#endif
#include "ipsend.h"
+#include "iplang.h"
/*
@@ -65,6 +68,11 @@ char *addr, *eaddr;
struct sockaddr_inarp *sin;
struct sockaddr_dl *sdl;
+#ifdef IPSEND
+ if (arp_getipv4(addr, ether) == 0)
+ return 0;
+#endif
+
mib[0] = CTL_NET;
mib[1] = PF_ROUTE;
mib[2] = 0;