summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryasuoka <yasuoka@openbsd.org>2018-08-31 15:18:02 +0000
committeryasuoka <yasuoka@openbsd.org>2018-08-31 15:18:02 +0000
commit4f038256fb38929c5dc1d10ef5fbefdcedbbfc7c (patch)
treeb17635940e36b345d63450515947c06e03baa988
parentCadd a TDB `tdb' instead of `sa'. (diff)
downloadwireguard-openbsd-4f038256fb38929c5dc1d10ef5fbefdcedbbfc7c.tar.xz
wireguard-openbsd-4f038256fb38929c5dc1d10ef5fbefdcedbbfc7c.zip
Dont print "default" for "0.0.0.0" if it is a host route.
diff from asou at soum.co.jp ok claudio kn
-rw-r--r--sbin/route/show.c4
-rw-r--r--usr.bin/netstat/show.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/sbin/route/show.c b/sbin/route/show.c
index aec4c1aa167..ee402bf3024 100644
--- a/sbin/route/show.c
+++ b/sbin/route/show.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: show.c,v 1.113 2018/06/04 19:17:37 kn Exp $ */
+/* $OpenBSD: show.c,v 1.114 2018/08/31 15:18:02 yasuoka Exp $ */
/* $NetBSD: show.c,v 1.1 1996/11/15 18:01:41 gwr Exp $ */
/*
@@ -492,8 +492,6 @@ routename4(in_addr_t in)
struct in_addr ina;
struct hostent *hp;
- if (in == INADDR_ANY)
- cp = "default";
if (!cp && !nflag) {
if ((hp = gethostbyaddr((char *)&in,
sizeof(in), AF_INET)) != NULL) {
diff --git a/usr.bin/netstat/show.c b/usr.bin/netstat/show.c
index 82526941a0e..ab6f63fd648 100644
--- a/usr.bin/netstat/show.c
+++ b/usr.bin/netstat/show.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: show.c,v 1.54 2018/06/04 19:17:37 kn Exp $ */
+/* $OpenBSD: show.c,v 1.55 2018/08/31 15:18:02 yasuoka Exp $ */
/* $NetBSD: show.c,v 1.1 1996/11/15 18:01:41 gwr Exp $ */
/*
@@ -490,8 +490,6 @@ routename4(in_addr_t in)
struct in_addr ina;
struct hostent *hp;
- if (in == INADDR_ANY)
- cp = "default";
if (!cp && !nflag) {
if ((hp = gethostbyaddr((char *)&in,
sizeof(in), AF_INET)) != NULL) {