summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/route.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1996-06-10 21:03:38 +0000
committerjulian <julian@FreeBSD.org>1996-06-10 21:03:38 +0000
commit0ba97cb21fbbde5b6af767531299e42fe088ad43 (patch)
tree50b4a1a6cdd5ccc158c583a47f6cd4788100aa44 /usr.bin/netstat/route.c
parent0e3efc7987c3d214da05c649e00c7f72620a96bd (diff)
downloadFreeBSD-src-0ba97cb21fbbde5b6af767531299e42fe088ad43.zip
FreeBSD-src-0ba97cb21fbbde5b6af767531299e42fe088ad43.tar.gz
better appletalk support.
Diffstat (limited to 'usr.bin/netstat/route.c')
-rw-r--r--usr.bin/netstat/route.c40
1 files changed, 2 insertions, 38 deletions
diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c
index 8c0f688..70a2d9e 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.13 1996/06/02 23:19:11 alex Exp $";
+ "$Id: route.c,v 1.14 1996/06/08 00:20:42 julian Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -416,10 +416,9 @@ p_sockaddr(sa, mask, flags, width)
}
case AF_APPLETALK:
{
- cp = atalk_print(sa);
+ cp = atalk_print(sa,3);
break;
}
-
#ifdef NS
case AF_NS:
cp = ns_print(sa);
@@ -714,41 +713,6 @@ rt_stats(off)
rtstat.rts_wildcard, plural(rtstat.rts_wildcard));
}
-char *
-at_addr_print(ata)
- struct at_addr *ata;
-{
-static char mybuf[50];
-
- sprintf(mybuf,"[%hd.%d]",ntohs(ata->s_net),(unsigned long)ata->s_node);
- return mybuf;
-}
-
-char *
-atalk_print(sa)
- register struct sockaddr *sa;
-{
- struct sockaddr_at *sat = (struct sockaddr_at *)sa;
-static char mybuf[50];
-
- strcpy(mybuf,at_addr_print(&sat->sat_addr));
- sprintf(mybuf+strlen(mybuf),":%d",sat->sat_port);
-#if 0
- switch(sat->sat_hints.type) {
- case SATHINT_NONE:
- sprintf(mybuf,"[no type]");
- break;
- case SATHINT_CONFIG:
- case SATHINT_IFACE:
- sprintf(mybuf,"[too hard for now]");
- break;
- default:
- sprintf(mybuf,"[unknown type]");
- }
-#endif
- return mybuf;
-}
-
char *
ipx_print(sa)
register struct sockaddr *sa;
OpenPOWER on IntegriCloud