From 37b197b9ecd9949ddd0e7bffd37bcfb1ee431bbe Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Fri, 16 Feb 1996 15:42:14 +0000 Subject: For some reason, the changes to make route.c compile didn't make it over. Fixed. Pointed-out-by: joerg --- usr.bin/netstat/route.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c index b0ca63294f40..7f237178b82e 100644 --- a/usr.bin/netstat/route.c +++ b/usr.bin/netstat/route.c @@ -36,7 +36,7 @@ static char sccsid[] = "From: @(#)route.c 8.6 (Berkeley) 4/28/95"; #endif static const char rcsid[] = - "$Id: route.c,v 1.10 1996/01/14 23:42:19 peter Exp $"; + "$Id: route.c,v 1.11 1996/01/15 02:18:35 peter Exp $"; #endif /* not lint */ #include @@ -54,7 +54,9 @@ static const char rcsid[] = #include +#ifdef NS #include +#endif #include @@ -174,9 +176,11 @@ pr_family(af) case AF_IPX: afname = "IPX"; break; +#ifdef NS case AF_NS: afname = "XNS"; break; +#endif case AF_ISO: afname = "ISO"; break; @@ -407,9 +411,11 @@ p_sockaddr(sa, mask, flags, width) break; } +#ifdef NS case AF_NS: cp = ns_print(sa); break; +#endif case AF_LINK: { @@ -794,6 +800,7 @@ static union ipx_net ipx_zeronet; return(p); } +#ifdef NS short ns_nullh[] = {0,0,0}; short ns_bh[] = {-1,-1,-1}; @@ -861,6 +868,7 @@ ns_phost(sa) if (strncmp("0H.", p, 3) == 0) p += 3; return(p); } +#endif void upHex(p0) -- cgit v1.2.3