diff options
author | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2018-08-31 15:18:03 +0000 |
---|---|---|
committer | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2018-08-31 15:18:03 +0000 |
commit | 11f4e9bce8bf2f76ad8e901c3565a947a0f72f3e (patch) | |
tree | d85072562cc4b04a5ad934f2d15b0785bf6ca923 /sbin | |
parent | b3c6d45833dc87af994b881a54dc538359911245 (diff) |
Dont print "default" for "0.0.0.0" if it is a host route.
diff from asou at soum.co.jp
ok claudio kn
Diffstat (limited to 'sbin')
-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 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) { |