summaryrefslogtreecommitdiffstats
path: root/usr.bin/fstat
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-06-14 20:54:18 +0000
committerrwatson <rwatson@FreeBSD.org>2004-06-14 20:54:18 +0000
commit78e2eb4e877a0efe310219d7d116e7bcea55451e (patch)
tree431a93da12d329c3be8f9f79b09b81f850519a0f /usr.bin/fstat
parent7f82e9bad3be6eba55241830b491ed9cdd88ba09 (diff)
downloadFreeBSD-src-78e2eb4e877a0efe310219d7d116e7bcea55451e.zip
FreeBSD-src-78e2eb4e877a0efe310219d7d116e7bcea55451e.tar.gz
Teach fstat(1) about new location for socket state flags relating to
socket buffer state. Submitted by: rik Reminded by: le
Diffstat (limited to 'usr.bin/fstat')
-rw-r--r--usr.bin/fstat/fstat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c
index 3612582..1578dd3 100644
--- a/usr.bin/fstat/fstat.c
+++ b/usr.bin/fstat/fstat.c
@@ -852,10 +852,10 @@ socktrans(sock, i)
char shoconn[4], *cp;
cp = shoconn;
- if (!(so.so_state & SS_CANTRCVMORE))
+ if (!(so.so_rcv.sb_state & SBS_CANTRCVMORE))
*cp++ = '<';
*cp++ = '-';
- if (!(so.so_state & SS_CANTSENDMORE))
+ if (!(so.so_snd.sb_state & SBS_CANTSENDMORE))
*cp++ = '>';
*cp = '\0';
printf(" %s %lx", shoconn,
OpenPOWER on IntegriCloud