aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>1996-02-16 15:42:14 +0000
committerGarrett Wollman <wollman@FreeBSD.org>1996-02-16 15:42:14 +0000
commit37b197b9ecd9949ddd0e7bffd37bcfb1ee431bbe (patch)
treebf6de87ad343e5ef0cfafbb1968c872e9d774610
parentf8d3a3493dfed63d10d04b998f4d5297715a09c5 (diff)
downloadsrc-37b197b9ecd9949ddd0e7bffd37bcfb1ee431bbe.tar.gz
src-37b197b9ecd9949ddd0e7bffd37bcfb1ee431bbe.zip
For some reason, the changes to make route.c compile didn't make it over.
Fixed. Pointed-out-by: joerg
Notes
Notes: svn path=/head/; revision=14110
-rw-r--r--usr.bin/netstat/route.c10
1 files changed, 9 insertions, 1 deletions
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 <sys/param.h>
@@ -54,7 +54,9 @@ static const char rcsid[] =
#include <netipx/ipx.h>
+#ifdef NS
#include <netns/ns.h>
+#endif
#include <sys/sysctl.h>
@@ -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)