1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00

Teach fstat(1) about new location for socket state flags relating to

socket buffer state.

Submitted by:	rik
Reminded by:	le
This commit is contained in:
Robert Watson 2004-06-14 20:54:18 +00:00
parent 4b32efacf3
commit 97b88fbf30
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130489

View File

@ -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,