diff options
author | 2015-04-27 09:51:58 +0000 | |
---|---|---|
committer | 2015-04-27 09:51:58 +0000 | |
commit | 74d4af9e4a532242559c807a36ae8618f7e874e6 (patch) | |
tree | a03015c0dec26ad61911dbc85eff63e6ad18a03a | |
parent | Since upd(4) currently supports a known but limited number of sensors, (diff) | |
download | wireguard-openbsd-74d4af9e4a532242559c807a36ae8618f7e874e6.tar.xz wireguard-openbsd-74d4af9e4a532242559c807a36ae8618f7e874e6.zip |
route show does not need to filter unwanted af itself, the sysctl does
that for us.
approach seems sound deraadt@
ok claudio@ mpi@ henning@ phessler@
-rw-r--r-- | sbin/route/show.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sbin/route/show.c b/sbin/route/show.c index c2971056b44..c62b0155d52 100644 --- a/sbin/route/show.c +++ b/sbin/route/show.c @@ -1,4 +1,4 @@ -/* $OpenBSD: show.c,v 1.98 2015/02/06 03:22:00 reyk Exp $ */ +/* $OpenBSD: show.c,v 1.99 2015/04/27 09:51:58 benno Exp $ */ /* $NetBSD: show.c,v 1.1 1996/11/15 18:01:41 gwr Exp $ */ /* @@ -154,8 +154,6 @@ p_rttables(int af, u_int tableid, int hastable) 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); } free(buf); |