=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/netstat/route.c,v retrieving revision 1.47 retrieving revision 1.48 diff -c -r1.47 -r1.48 *** src/usr.bin/netstat/route.c 2002/07/25 03:58:56 1.47 --- src/usr.bin/netstat/route.c 2002/09/19 16:22:33 1.48 *************** *** 1,4 **** ! /* $OpenBSD: route.c,v 1.47 2002/07/25 03:58:56 deraadt Exp $ */ /* $NetBSD: route.c,v 1.15 1996/05/07 02:55:06 thorpej Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: route.c,v 1.48 2002/09/19 16:22:33 ho Exp $ */ /* $NetBSD: route.c,v 1.15 1996/05/07 02:55:06 thorpej Exp $ */ /* *************** *** 38,44 **** #if 0 static char sccsid[] = "from: @(#)route.c 8.3 (Berkeley) 3/9/94"; #else ! static char *rcsid = "$OpenBSD: route.c,v 1.47 2002/07/25 03:58:56 deraadt Exp $"; #endif #endif /* not lint */ --- 38,44 ---- #if 0 static char sccsid[] = "from: @(#)route.c 8.3 (Berkeley) 3/9/94"; #else ! static char *rcsid = "$OpenBSD: route.c,v 1.48 2002/09/19 16:22:33 ho Exp $"; #endif #endif /* not lint */ *************** *** 1058,1065 **** kget(sen3.sen_ipsp, ipo); ! getnameinfo(&ipo.ipo_dst.sa, ipo.ipo_dst.sa.sa_len, ! hostn, NI_MAXHOST, NULL, 0, NI_NUMERICHOST); printf("%s", hostn); printf("/%-u", ipo.ipo_sproto); --- 1058,1067 ---- kget(sen3.sen_ipsp, ipo); ! if (getnameinfo(&ipo.ipo_dst.sa, ipo.ipo_dst.sa.sa_len, ! hostn, NI_MAXHOST, NULL, 0, NI_NUMERICHOST) != 0) ! strlcpy (hostn, "none", NI_MAXHOST); ! printf("%s", hostn); printf("/%-u", ipo.ipo_sproto);