diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2004-06-20 21:39:46 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2004-06-20 21:39:46 +0000 |
commit | 80bd721339208766729d6b66e576e31395f4dbc7 (patch) | |
tree | f45245060c90f02c0c04602dcc45ffc1a97d4c83 | |
parent | 1b2e3b4b465d68c3f6aa7e8a369d0d432dae10aa (diff) | |
download | src-test2-80bd721339208766729d6b66e576e31395f4dbc7.tar.gz src-test2-80bd721339208766729d6b66e576e31395f4dbc7.zip |
Notes
-rw-r--r-- | sys/sys/socketvar.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h index ee6af8af3baa..81737157836e 100644 --- a/sys/sys/socketvar.h +++ b/sys/sys/socketvar.h @@ -61,7 +61,7 @@ struct socket { short so_type; /* (a) generic type, see socket.h */ short so_options; /* from socket call, see socket.h */ short so_linger; /* time to linger while closing */ - short so_state; /* internal state flags SS_* */ + short so_state; /* (b) internal state flags SS_* */ int so_qstate; /* (e) internal state flags SQ_* */ void *so_pcb; /* protocol control block */ struct protosw *so_proto; /* (a) protocol handle */ @@ -111,6 +111,9 @@ struct socket { short sb_flags; /* (c/d) flags, see below */ short sb_state; /* (c/d) socket state on sockbuf */ } so_rcv, so_snd; +/* + * Constants for sb_flags field of struct sockbuf. + */ #define SB_MAX (256*1024) /* default for max chars in sockbuf */ #define SB_LOCK 0x01 /* lock on data queue */ #define SB_WANT 0x02 /* someone is waiting to lock */ |