From ed53389c2b5c0f7a099f788bacd8c27897e97689 Mon Sep 17 00:00:00 2001 From: kstailey Date: Sat, 1 Feb 1997 17:31:19 +0000 Subject: [PATCH] accept "-f local" for AF_LOCAL" --- usr.bin/netstat/main.c | 6 ++++-- 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 -- 2.20.1