summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter/ipsend/larp.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ipfilter/ipsend/larp.c')
-rw-r--r--contrib/ipfilter/ipsend/larp.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/contrib/ipfilter/ipsend/larp.c b/contrib/ipfilter/ipsend/larp.c
index 7d38ddf..d64e701 100644
--- a/contrib/ipfilter/ipsend/larp.c
+++ b/contrib/ipfilter/ipsend/larp.c
@@ -1,5 +1,5 @@
/*
- * larp.c (C) 1995-1997 Darren Reed
+ * larp.c (C) 1995-1998 Darren Reed
*
* Redistribution and use in source and binary forms are permitted
* provided that this notice is preserved and due credit is given
@@ -7,7 +7,7 @@
*/
#if !defined(lint)
static const char sccsid[] = "@(#)larp.c 1.1 8/19/95 (C)1995 Darren Reed";
-static const char rcsid[] = "@(#)$Id: larp.c,v 2.0.2.3 1997/09/28 07:13:31 darrenr Exp $";
+static const char rcsid[] = "@(#)$Id: larp.c,v 2.1 1999/08/04 17:31:10 darrenr Exp $";
#endif
#include <stdio.h>
#include <errno.h>
@@ -19,6 +19,9 @@ static const char rcsid[] = "@(#)$Id: larp.c,v 2.0.2.3 1997/09/28 07:13:31 darre
#include <net/if.h>
#include <net/if_arp.h>
+#include "ip_compat.h"
+#include "iplang/iplang.h"
+
/*
* lookup host and return
* its IP address in address
@@ -59,6 +62,10 @@ char *ether;
struct sockaddr_in *sin;
char *inet_ntoa();
+#ifdef IP_SEND
+ if (arp_getipv4(ip, ether) == 0)
+ return 0;
+#endif
bzero((char *)&ar, sizeof(ar));
sin = (struct sockaddr_in *)&ar.arp_pa;
sin->sin_family = AF_INET;
OpenPOWER on IntegriCloud