summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2000-03-13 23:40:21 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2000-03-13 23:40:21 +0000
commitd975165e0ed6e5da9195594fc631897099795165 (patch)
treebdffd1b05cf8f4336b2f0c1301c4bf4d3f87f5b6 /usr.sbin
parent32036e41bdf3a075b472706bb1888bea896ded04 (diff)
Import of Darren Reed's IPFilter 3.3.11. See sbin/ipf/HISTORY for detailed
changelog. Documentation changes are now way behind. Volunteers?
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ipftest/ipft_ef.c2
-rw-r--r--usr.sbin/ipftest/ipft_hx.c2
-rw-r--r--usr.sbin/ipftest/ipft_pc.c2
-rw-r--r--usr.sbin/ipftest/ipft_sn.c2
-rw-r--r--usr.sbin/ipftest/ipft_td.c2
-rw-r--r--usr.sbin/ipftest/ipft_tx.c2
-rw-r--r--usr.sbin/ipftest/ipt.c2
-rw-r--r--usr.sbin/ipftest/ipt.h2
-rw-r--r--usr.sbin/ipftest/misc.c2
-rw-r--r--usr.sbin/ipftest/pcap.h2
-rw-r--r--usr.sbin/ipftest/snoop.h2
-rw-r--r--usr.sbin/ipmon/ipmon.c10
12 files changed, 16 insertions, 16 deletions
diff --git a/usr.sbin/ipftest/ipft_ef.c b/usr.sbin/ipftest/ipft_ef.c
index e7f69603606..15f6ae1c44c 100644
--- a/usr.sbin/ipftest/ipft_ef.c
+++ b/usr.sbin/ipftest/ipft_ef.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipft_ef.c,v 1.13 2000/02/16 22:34:23 kjell Exp $ */
+/* $OpenBSD: ipft_ef.c,v 1.14 2000/03/13 23:40:20 kjell Exp $ */
/*
* Copyright (C) 1993-1998 by Darren Reed.
diff --git a/usr.sbin/ipftest/ipft_hx.c b/usr.sbin/ipftest/ipft_hx.c
index b26d5593e68..46d00dafd3d 100644
--- a/usr.sbin/ipftest/ipft_hx.c
+++ b/usr.sbin/ipftest/ipft_hx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipft_hx.c,v 1.11 2000/02/16 22:34:23 kjell Exp $ */
+/* $OpenBSD: ipft_hx.c,v 1.12 2000/03/13 23:40:20 kjell Exp $ */
/*
* Copyright (C) 1995-1998 by Darren Reed.
diff --git a/usr.sbin/ipftest/ipft_pc.c b/usr.sbin/ipftest/ipft_pc.c
index 124b3bc949c..425a89efaa7 100644
--- a/usr.sbin/ipftest/ipft_pc.c
+++ b/usr.sbin/ipftest/ipft_pc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipft_pc.c,v 1.15 2000/02/16 22:34:23 kjell Exp $ */
+/* $OpenBSD: ipft_pc.c,v 1.16 2000/03/13 23:40:20 kjell Exp $ */
/*
* Copyright (C) 1993-1998 by Darren Reed.
diff --git a/usr.sbin/ipftest/ipft_sn.c b/usr.sbin/ipftest/ipft_sn.c
index c497da18df1..f9dd995ec09 100644
--- a/usr.sbin/ipftest/ipft_sn.c
+++ b/usr.sbin/ipftest/ipft_sn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipft_sn.c,v 1.12 2000/02/16 22:34:23 kjell Exp $ */
+/* $OpenBSD: ipft_sn.c,v 1.13 2000/03/13 23:40:20 kjell Exp $ */
/*
* Copyright (C) 1993-1998 by Darren Reed.
diff --git a/usr.sbin/ipftest/ipft_td.c b/usr.sbin/ipftest/ipft_td.c
index 5a9e8ee0e11..1129f836f47 100644
--- a/usr.sbin/ipftest/ipft_td.c
+++ b/usr.sbin/ipftest/ipft_td.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipft_td.c,v 1.13 2000/02/16 22:34:23 kjell Exp $ */
+/* $OpenBSD: ipft_td.c,v 1.14 2000/03/13 23:40:20 kjell Exp $ */
/*
* Copyright (C) 1993-1998 by Darren Reed.
diff --git a/usr.sbin/ipftest/ipft_tx.c b/usr.sbin/ipftest/ipft_tx.c
index 928c3e75028..23397c5319a 100644
--- a/usr.sbin/ipftest/ipft_tx.c
+++ b/usr.sbin/ipftest/ipft_tx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipft_tx.c,v 1.15 2000/02/16 22:34:24 kjell Exp $ */
+/* $OpenBSD: ipft_tx.c,v 1.16 2000/03/13 23:40:20 kjell Exp $ */
/*
* Copyright (C) 1995-1998 by Darren Reed.
diff --git a/usr.sbin/ipftest/ipt.c b/usr.sbin/ipftest/ipt.c
index f901dc3e7b3..4e6f6aa60f6 100644
--- a/usr.sbin/ipftest/ipt.c
+++ b/usr.sbin/ipftest/ipt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipt.c,v 1.16 2000/02/16 22:34:24 kjell Exp $ */
+/* $OpenBSD: ipt.c,v 1.17 2000/03/13 23:40:20 kjell Exp $ */
/*
* Copyright (C) 1993-1998 by Darren Reed.
diff --git a/usr.sbin/ipftest/ipt.h b/usr.sbin/ipftest/ipt.h
index a78bebaaccc..8b1fc4297f3 100644
--- a/usr.sbin/ipftest/ipt.h
+++ b/usr.sbin/ipftest/ipt.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipt.h,v 1.9 2000/02/16 22:34:24 kjell Exp $ */
+/* $OpenBSD: ipt.h,v 1.10 2000/03/13 23:40:20 kjell Exp $ */
/*
* Copyright (C) 1993-1998 by Darren Reed.
diff --git a/usr.sbin/ipftest/misc.c b/usr.sbin/ipftest/misc.c
index ea79b1fc80b..cc2aa4ce5c5 100644
--- a/usr.sbin/ipftest/misc.c
+++ b/usr.sbin/ipftest/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.11 2000/02/16 22:34:24 kjell Exp $ */
+/* $OpenBSD: misc.c,v 1.12 2000/03/13 23:40:20 kjell Exp $ */
/*
* Copyright (C) 1993-1998 by Darren Reed.
diff --git a/usr.sbin/ipftest/pcap.h b/usr.sbin/ipftest/pcap.h
index 876602392a5..cd30a4f85f8 100644
--- a/usr.sbin/ipftest/pcap.h
+++ b/usr.sbin/ipftest/pcap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcap.h,v 1.9 2000/02/16 22:34:25 kjell Exp $ */
+/* $OpenBSD: pcap.h,v 1.10 2000/03/13 23:40:20 kjell Exp $ */
/*
* Copyright (C) 1993-1998 by Darren Reed.
diff --git a/usr.sbin/ipftest/snoop.h b/usr.sbin/ipftest/snoop.h
index b52d117863d..a7847ca8ff6 100644
--- a/usr.sbin/ipftest/snoop.h
+++ b/usr.sbin/ipftest/snoop.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: snoop.h,v 1.8 2000/02/16 22:34:25 kjell Exp $ */
+/* $OpenBSD: snoop.h,v 1.9 2000/03/13 23:40:20 kjell Exp $ */
/*
* Copyright (C) 1993-1998 by Darren Reed.
diff --git a/usr.sbin/ipmon/ipmon.c b/usr.sbin/ipmon/ipmon.c
index ac367ae78e7..31b42559040 100644
--- a/usr.sbin/ipmon/ipmon.c
+++ b/usr.sbin/ipmon/ipmon.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipmon.c,v 1.22 2000/02/16 22:34:23 kjell Exp $ */
+/* $OpenBSD: ipmon.c,v 1.23 2000/03/13 23:40:20 kjell Exp $ */
/*
* Copyright (C) 1993-1998 by Darren Reed.
@@ -9,7 +9,7 @@
*/
#if !defined(lint)
static const char sccsid[] = "@(#)ipmon.c 1.21 6/5/96 (C)1993-1998 Darren Reed";
-static const char rcsid[] = "@(#)$IPFilter: ipmon.c,v 2.3.2.4 2000/01/24 12:45:25 darrenr Exp $";
+static const char rcsid[] = "@(#)$IPFilter: ipmon.c,v 2.3.2.5 2000/02/16 14:40:39 darrenr Exp $";
#endif
#ifndef SOLARIS
@@ -178,7 +178,7 @@ static void init_tabs()
struct protoent *p;
struct servent *s;
char *name, **tab;
- u_int port;
+ int port;
if (protocols != NULL) {
free(protocols);
@@ -217,11 +217,11 @@ static void init_tabs()
if (s->s_proto == NULL)
continue;
else if (!strcmp(s->s_proto, "tcp")) {
- port = (u_int)s->s_port;
+ port = s->s_port;
name = s->s_name;
tab = tcp_ports;
} else if (!strcmp(s->s_proto, "udp")) {
- port = (u_int)s->s_port;
+ port = s->s_port;
name = s->s_name;
tab = udp_ports;
} else