diff options
author | Kjell Wooding <kjell@cvs.openbsd.org> | 2000-03-13 23:40:21 +0000 |
---|---|---|
committer | Kjell Wooding <kjell@cvs.openbsd.org> | 2000-03-13 23:40:21 +0000 |
commit | d975165e0ed6e5da9195594fc631897099795165 (patch) | |
tree | bdffd1b05cf8f4336b2f0c1301c4bf4d3f87f5b6 /usr.sbin/ipmon | |
parent | 32036e41bdf3a075b472706bb1888bea896ded04 (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/ipmon')
-rw-r--r-- | usr.sbin/ipmon/ipmon.c | 10 |
1 files changed, 5 insertions, 5 deletions
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 |