summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter/iplang
diff options
context:
space:
mode:
authorguido <guido@FreeBSD.org>2005-12-30 11:34:54 +0000
committerguido <guido@FreeBSD.org>2005-12-30 11:34:54 +0000
commit9749beb9e35afd40d054e5592764d50ed069a890 (patch)
tree92e5e7f4a485051a94f584190e946730b901c425 /contrib/ipfilter/iplang
parentb8892e0b0c21a7cf39b7b7abaaa0f1a85028288f (diff)
downloadFreeBSD-src-9749beb9e35afd40d054e5592764d50ed069a890.zip
FreeBSD-src-9749beb9e35afd40d054e5592764d50ed069a890.tar.gz
Import IP Filter 4.1.10
Diffstat (limited to 'contrib/ipfilter/iplang')
-rw-r--r--contrib/ipfilter/iplang/iplang.h2
-rw-r--r--contrib/ipfilter/iplang/iplang_l.l4
-rw-r--r--contrib/ipfilter/iplang/iplang_y.y12
3 files changed, 9 insertions, 9 deletions
diff --git a/contrib/ipfilter/iplang/iplang.h b/contrib/ipfilter/iplang/iplang.h
index 675897b..f36a384 100644
--- a/contrib/ipfilter/iplang/iplang.h
+++ b/contrib/ipfilter/iplang/iplang.h
@@ -1,5 +1,3 @@
-/* $NetBSD$ */
-
/*
* Copyright (C) 1997-1998 by Darren Reed.
*
diff --git a/contrib/ipfilter/iplang/iplang_l.l b/contrib/ipfilter/iplang/iplang_l.l
index 0a97ec9..fae30a2 100644
--- a/contrib/ipfilter/iplang/iplang_l.l
+++ b/contrib/ipfilter/iplang/iplang_l.l
@@ -1,12 +1,10 @@
-/* $NetBSD$ */
-
%{
/*
* Copyright (C) 1997-1998 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
- * Id: iplang_l.l,v 2.8 2003/07/28 01:15:31 darrenr Exp
+ * $Id: iplang_l.l,v 2.8 2003/07/28 01:15:31 darrenr Exp $
*/
#include <stdio.h>
#include <string.h>
diff --git a/contrib/ipfilter/iplang/iplang_y.y b/contrib/ipfilter/iplang/iplang_y.y
index fa960df..4d494fb 100644
--- a/contrib/ipfilter/iplang/iplang_y.y
+++ b/contrib/ipfilter/iplang/iplang_y.y
@@ -1,12 +1,10 @@
-/* $NetBSD$ */
-
%{
/*
* Copyright (C) 1997-1998 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
- * Id: iplang_y.y,v 2.9.2.2 2004/12/09 19:41:10 darrenr Exp
+ * $Id: iplang_y.y,v 2.9.2.3 2005/10/17 17:25:04 darrenr Exp $
*/
#include <stdio.h>
@@ -1290,8 +1288,14 @@ void prep_packet()
if (ifp->if_fd == -1)
ifp->if_fd = initdevice(ifp->if_name, 5);
gwip = sending.snd_gw;
- if (!gwip.s_addr)
+ if (!gwip.s_addr) {
+ if (aniphead == NULL) {
+ fprintf(stderr,
+ "no destination address defined for sending\n");
+ return;
+ }
gwip = aniphead->ah_ip->ip_dst;
+ }
(void) send_ip(ifp->if_fd, ifp->if_MTU, (ip_t *)ipbuffer, gwip, 2);
}
OpenPOWER on IntegriCloud