From 11f4e9bce8bf2f76ad8e901c3565a947a0f72f3e Mon Sep 17 00:00:00 2001 From: YASUOKA Masahiko Date: Fri, 31 Aug 2018 15:18:03 +0000 Subject: Dont print "default" for "0.0.0.0" if it is a host route. diff from asou at soum.co.jp ok claudio kn --- sbin/route/show.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sbin') 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) { -- cgit v1.2.3