diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-02-01 17:31:21 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-02-01 17:31:21 +0000 |
commit | 9c0b05d5a19d9a7acc20d2f06b4f4d2489937918 (patch) | |
tree | ec89718683bf0ff03af5ea0d085027be65fd36f2 /usr.bin | |
parent | 58840bb2e4ebf18c140e13f5e5a7e880e3a83a89 (diff) |
accept "-f local" for AF_LOCAL"
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/netstat/main.c | 6 | ||||
-rw-r--r-- | usr.bin/netstat/netstat.1 | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c index 349be1474b2..5a866fd8aa1 100644 --- a/usr.bin/netstat/main.c +++ b/usr.bin/netstat/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.6 1997/01/15 23:42:55 millert Exp $ */ +/* $OpenBSD: main.c,v 1.7 1997/02/01 17:31:19 kstailey Exp $ */ /* $NetBSD: main.c,v 1.9 1996/05/07 02:55:02 thorpej Exp $ */ /* @@ -44,7 +44,7 @@ char copyright[] = #if 0 static char sccsid[] = "from: @(#)main.c 8.4 (Berkeley) 3/1/94"; #else -static char *rcsid = "$OpenBSD: main.c,v 1.6 1997/01/15 23:42:55 millert Exp $"; +static char *rcsid = "$OpenBSD: main.c,v 1.7 1997/02/01 17:31:19 kstailey Exp $"; #endif #endif /* not lint */ @@ -240,6 +240,8 @@ main(argc, argv) case 'f': if (strcmp(optarg, "inet") == 0) af = AF_INET; + else if (strcmp(optarg, "local") == 0) + af = AF_LOCAL; else if (strcmp(optarg, "unix") == 0) af = AF_UNIX; else if (strcmp(optarg, "ipx") == 0) diff --git a/usr.bin/netstat/netstat.1 b/usr.bin/netstat/netstat.1 index c29649825cb..56f1bdc8b44 100644 --- a/usr.bin/netstat/netstat.1 +++ b/usr.bin/netstat/netstat.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: netstat.1,v 1.4 1996/08/16 09:29:33 mickey Exp $ +.\" $OpenBSD: netstat.1,v 1.5 1997/02/01 17:31:20 kstailey Exp $ .\" $NetBSD: netstat.1,v 1.11 1995/10/03 21:42:43 thorpej Exp $ .\" .\" Copyright (c) 1983, 1990, 1992, 1993 @@ -113,6 +113,9 @@ for .Ar iso , for .Dv AF_ISO , +.Ar local , +for +.Dv AF_LOCAL , and .Ar unix , for |