diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-06-08 04:47:05 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-06-08 04:47:05 +0000 |
commit | ff72c17b115203089ffb9e692d489160b793da69 (patch) | |
tree | a9f7db325ac0f93a9b3e930daf1ab7fac6d817e5 /usr.bin/netstat/if.c | |
parent | 52eb9ac48eb7ccab8abb68d872017ca8b118c0c5 (diff) |
bye bye, Xerox NS protocols
Diffstat (limited to 'usr.bin/netstat/if.c')
-rw-r--r-- | usr.bin/netstat/if.c | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c index ac8bedf81a7..7e140e6f2a7 100644 --- a/usr.bin/netstat/if.c +++ b/usr.bin/netstat/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.43 2005/03/25 17:01:03 jaredy Exp $ */ +/* $OpenBSD: if.c,v 1.44 2005/06/08 04:47:04 henning Exp $ */ /* $NetBSD: if.c,v 1.16.4.2 1996/06/07 21:46:46 thorpej Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94"; #else -static char *rcsid = "$OpenBSD: if.c,v 1.43 2005/03/25 17:01:03 jaredy Exp $"; +static char *rcsid = "$OpenBSD: if.c,v 1.44 2005/06/08 04:47:04 henning Exp $"; #endif #endif /* not lint */ @@ -48,8 +48,6 @@ static char *rcsid = "$OpenBSD: if.c,v 1.43 2005/03/25 17:01:03 jaredy Exp $"; #include <netinet/in.h> #include <netinet/in_var.h> #include <netinet/if_ether.h> -#include <netns/ns.h> -#include <netns/ns_if.h> #include <netipx/ipx.h> #include <netipx/ipx_if.h> #include <arpa/inet.h> @@ -84,7 +82,6 @@ intpr(int interval, u_long ifnetaddr) #ifdef INET6 struct in6_ifaddr in6; #endif - struct ns_ifaddr ns; struct ipx_ifaddr ipx; } ifaddr; u_long total, ifaddraddr; @@ -295,22 +292,6 @@ intpr(int interval, u_long ifnetaddr) printf("atlk:%-12s",atalk_print(sa,0x10) ); printf("%-12s ",atalk_print(sa,0x0b) ); break; - case AF_NS: - { - struct sockaddr_ns *sns = - (struct sockaddr_ns *)sa; - u_long net; - char netnum[8]; - - *(union ns_net *)&net = sns->sns_addr.x_net; - snprintf(netnum, sizeof netnum, "%xH", - ntohl(net)); - upHex(netnum); - printf("ns:%-8s ", netnum); - printf("%-17s ", - ns_phost((struct sockaddr *)sns)); - } - break; case AF_LINK: { struct sockaddr_dl *sdl = |