diff options
Diffstat (limited to 'usr.bin/netstat/route.c')
-rw-r--r-- | usr.bin/netstat/route.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c index 129337b..158b3ff 100644 --- a/usr.bin/netstat/route.c +++ b/usr.bin/netstat/route.c @@ -53,6 +53,7 @@ static const char rcsid[] = #include <netinet/in.h> #include <netipx/ipx.h> #include <netatalk/at.h> +#include <netgraph/ng_socket.h> #ifdef NS #include <netns/ns.h> @@ -196,6 +197,9 @@ pr_family(af) case AF_CCITT: afname = "X.25"; break; + case AF_NETGRAPH: + afname = "Netgraph"; + break; default: afname = NULL; break; @@ -427,6 +431,11 @@ p_sockaddr(sa, mask, flags, width) cp = atalk_print(sa,11); break; } + case AF_NETGRAPH: + { + printf("%s", ((struct sockaddr_ng *)sa)->sg_data); + break; + } #ifdef NS case AF_NS: cp = ns_print(sa); |