summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbenno <benno@openbsd.org>2015-04-27 09:54:04 +0000
committerbenno <benno@openbsd.org>2015-04-27 09:54:04 +0000
commit18999c3aa9ec84df9b050421ef6466107de0b926 (patch)
treebea722c762c2fc658860856d8f83983027a80533
parentroute show does not need to filter unwanted af itself, the sysctl does (diff)
downloadwireguard-openbsd-18999c3aa9ec84df9b050421ef6466107de0b926.tar.xz
wireguard-openbsd-18999c3aa9ec84df9b050421ef6466107de0b926.zip
sync with rev 1.99 of sbin/route/show.c
requested by claudio@ and mpi@
-rw-r--r--usr.bin/netstat/show.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/netstat/show.c b/usr.bin/netstat/show.c
index a843e3e44c6..33c3ad079b6 100644
--- a/usr.bin/netstat/show.c
+++ b/usr.bin/netstat/show.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: show.c,v 1.47 2015/02/12 23:31:12 claudio Exp $ */
+/* $OpenBSD: show.c,v 1.48 2015/04/27 09:54:04 benno Exp $ */
/* $NetBSD: show.c,v 1.1 1996/11/15 18:01:41 gwr Exp $ */
/*
@@ -158,8 +158,6 @@ p_rttables(int af, u_int tableid)
if (rtm->rtm_version != RTM_VERSION)
continue;
sa = (struct sockaddr *)(next + rtm->rtm_hdrlen);
- if (af != AF_UNSPEC && sa->sa_family != af)
- continue;
p_rtentry(rtm);
}
}