diff options
author | 2011-11-01 10:14:06 +0000 | |
---|---|---|
committer | 2011-11-01 10:14:06 +0000 | |
commit | 66103546ef38796e21774d8b3e1c7458db564b8c (patch) | |
tree | 3fcc00866b4be544742d965dff7c9cda18e373ec /usr.bin/netstat/main.c | |
parent | List sockets existing only in the specified or current routing domain. (diff) | |
download | wireguard-openbsd-66103546ef38796e21774d8b3e1c7458db564b8c.tar.xz wireguard-openbsd-66103546ef38796e21774d8b3e1c7458db564b8c.zip |
Fixup previous: don't forget to actually get the current rtable;
reminded by Andreas Bartelt.
Diffstat (limited to 'usr.bin/netstat/main.c')
-rw-r--r-- | usr.bin/netstat/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c index aac2d3d10a8..468335df05d 100644 --- a/usr.bin/netstat/main.c +++ b/usr.bin/netstat/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.90 2011/11/01 00:00:01 mikeb Exp $ */ +/* $OpenBSD: main.c,v 1.91 2011/11/01 10:14:06 mikeb Exp $ */ /* $NetBSD: main.c,v 1.9 1996/05/07 02:55:02 thorpej Exp $ */ /* @@ -158,11 +158,12 @@ main(int argc, char *argv[]) char buf[_POSIX2_LINE_MAX]; gid_t gid; u_long pcbaddr = 0; - u_int tableid = 0; + u_int tableid; int Tflag = 0; int repeatcount = 0; af = AF_UNSPEC; + tableid = getrtable(); while ((ch = getopt(argc, argv, "AaBbc:dFf:gI:ilM:mN:np:P:qrsT:tuvW:w:")) != -1) |