summaryrefslogtreecommitdiffstats
path: root/usr.bin/fstat
diff options
context:
space:
mode:
authorshin <shin@FreeBSD.org>2000-02-19 21:46:45 +0000
committershin <shin@FreeBSD.org>2000-02-19 21:46:45 +0000
commit841fc647e82546c5ace4a39b6928db40cb033cc6 (patch)
tree9dd7545270a193771212926339248aa9cc492533 /usr.bin/fstat
parenta34d288bc9020e5d80076c6154e5720746f81628 (diff)
downloadFreeBSD-src-841fc647e82546c5ace4a39b6928db40cb033cc6.zip
FreeBSD-src-841fc647e82546c5ace4a39b6928db40cb033cc6.tar.gz
Fixed a little bit strange INET6 output.
Specified by: Ben Smithurst <ben@scientia.demon.co.uk> Approved by: jkh
Diffstat (limited to 'usr.bin/fstat')
-rw-r--r--usr.bin/fstat/fstat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c
index e943c89..ec8df44 100644
--- a/usr.bin/fstat/fstat.c
+++ b/usr.bin/fstat/fstat.c
@@ -684,6 +684,7 @@ socktrans(sock, i)
*/
switch(dom.dom_family) {
case AF_INET:
+ case AF_INET6:
getinetproto(proto.pr_protocol);
if (proto.pr_protocol == IPPROTO_TCP ) {
if (so.so_pcb) {
OpenPOWER on IntegriCloud