diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2014-06-23 03:46:18 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2014-06-23 03:46:18 +0000 |
commit | c39cf5c6337d9356a175b97eb0b3aedccfd86181 (patch) | |
tree | 917a8723e1c99419650984b52371ff89efa1bdb8 /usr.bin/systat | |
parent | fa550c5927b364008a8192d7c1b2a720e9036960 (diff) |
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/systat')
-rw-r--r-- | usr.bin/systat/if.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/systat/if.c b/usr.bin/systat/if.c index 74aedd035af..975a513a4b7 100644 --- a/usr.bin/systat/if.c +++ b/usr.bin/systat/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.20 2011/04/05 07:35:32 mpf Exp $ */ +/* $OpenBSD: if.c,v 1.21 2014/06/23 03:46:16 guenther Exp $ */ /* * Copyright (c) 2004 Markus Friedl <markus@openbsd.org> * @@ -191,7 +191,7 @@ fetchifstat(void) size_t need; mib[0] = CTL_NET; - mib[1] = AF_ROUTE; + mib[1] = PF_ROUTE; mib[2] = 0; mib[3] = 0; mib[4] = NET_RT_IFLIST; |