diff options
author | dm <dm@cvs.openbsd.org> | 1996-07-18 05:08:40 +0000 |
---|---|---|
committer | dm <dm@cvs.openbsd.org> | 1996-07-18 05:08:40 +0000 |
commit | d863770dbf1c7b1d87285f2c65bde3fe93cd1b9d (patch) | |
tree | afd06cb0f25ed0255313ed8a15dfe0f99cdb7215 /sbin/ipfstat/fils.c | |
parent | 1688332c300a04e1f04f1afcec7ff0a2a0a29e06 (diff) |
ipfilter 3.1.0
Diffstat (limited to 'sbin/ipfstat/fils.c')
-rw-r--r-- | sbin/ipfstat/fils.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/sbin/ipfstat/fils.c b/sbin/ipfstat/fils.c index 2592f0816dd..f0896402065 100644 --- a/sbin/ipfstat/fils.c +++ b/sbin/ipfstat/fils.c @@ -1,5 +1,3 @@ -/* $OpenBSD: fils.c,v 1.5 1996/07/10 03:53:49 ccappuc Exp $ */ - /* * (C)opyright 1993-1996 by Darren Reed. * @@ -29,6 +27,8 @@ #include <netinet/ip.h> #include <net/if.h> #include "ip_fil.h" +#include "ip_fil_compat.h" +#include "ip_nat.h" #include "ip_frag.h" #include "ip_state.h" #include <netdb.h> @@ -41,12 +41,13 @@ #endif #ifndef lint -static char sccsid[] = "@(#)fils.c 1.20 3/24/96 (C) 1993-1996 Darren Reed"; +static char sccsid[] = "@(#)fils.c 1.21 4/20/96 (C) 1993-1996 Darren Reed"; +static char rcsid[] = "$Id: fils.c,v 1.6 1996/07/18 05:08:09 dm Exp $"; #endif #ifdef _PATH_UNIX #define VMUNIX _PATH_UNIX #else -#define VMUNIX "/bsd" +#define VMUNIX "/vmunix" #endif extern char *optarg; @@ -64,6 +65,14 @@ int opts = 0; static void showstats(), showfrstates(); static void showlist(), showipstates(); +void Usage(name) +char *name; +{ + fprintf(stderr, "Usage: %s [-afhIiosv] [-d <device>]\n", name); + exit(1); +} + + int main(argc,argv) int argc; char *argv[]; @@ -114,6 +123,9 @@ char *argv[]; case 'v' : opts |= OPT_VERBOSE; break; + default : + Usage(); + break; } } |