diff options
author | 2014-06-23 03:46:16 +0000 | |
---|---|---|
committer | 2014-06-23 03:46:16 +0000 | |
commit | 149dc9fc38cac7cf2b890d8833fe7c468b3d51c3 (patch) | |
tree | e363e479e5408238edd2d22adc0e7e24a3473f8d /usr.bin/netstat/main.c | |
parent | unbreak - main needs to be extern in here somewhere. (diff) | |
download | wireguard-openbsd-149dc9fc38cac7cf2b890d8833fe7c468b3d51c3.tar.xz wireguard-openbsd-149dc9fc38cac7cf2b890d8833fe7c468b3d51c3.zip |
The second level of the CTL_NET sysctl is a PF_*, not an AF_*
inconsistent usage in route(8) noted by Gregor Best (gbe (at) ring0.de)
Diffstat (limited to 'usr.bin/netstat/main.c')
-rw-r--r-- | usr.bin/netstat/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c index 765be267585..84c753da3bd 100644 --- a/usr.bin/netstat/main.c +++ b/usr.bin/netstat/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.100 2014/02/13 20:51:21 tedu Exp $ */ +/* $OpenBSD: main.c,v 1.101 2014/06/23 03:46:17 guenther Exp $ */ /* $NetBSD: main.c,v 1.9 1996/05/07 02:55:02 thorpej Exp $ */ /* @@ -563,7 +563,7 @@ gettable(const char *s) errx(1, "invalid table id: %s", errstr); mib[0] = CTL_NET; - mib[1] = AF_ROUTE; + mib[1] = PF_ROUTE; mib[2] = 0; mib[3] = 0; mib[4] = NET_RT_TABLE; |