diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-03-15 12:30:06 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-03-15 12:30:06 +0000 |
commit | ca3dcadafa770c452b90dc4d96ecdb7eebdb1937 (patch) | |
tree | d01babb1d0b3c9b31f290ea5a2eaeee23dabcfcb | |
parent | 79eff99d0238811c5caa96672a3fc5d2fb2f50f0 (diff) | |
download | FreeBSD-src-ca3dcadafa770c452b90dc4d96ecdb7eebdb1937.zip FreeBSD-src-ca3dcadafa770c452b90dc4d96ecdb7eebdb1937.tar.gz |
Add SS_PROTOREF socket flag, which represents a strong reference by the
protocol to the socket. Normally protocol references are weak: that is,
the socket layer can tear down the socket (and hence protocol state)
when it finds convenient. This flag will allow the protocol to
explicitly declare to the socket layer that it is maintaining a
strong reference, rather than the current implicit model associated
with so_pcb pointer values and repeated attempts to possibly free the
socket.
-rw-r--r-- | sys/sys/socketvar.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h index f4d592a..e60ce2f 100644 --- a/sys/sys/socketvar.h +++ b/sys/sys/socketvar.h @@ -208,6 +208,7 @@ extern struct mtx accept_mtx; #define SS_ASYNC 0x0200 /* async i/o notify */ #define SS_ISCONFIRMING 0x0400 /* deciding to accept connection req */ #define SS_ISDISCONNECTED 0x2000 /* socket disconnected from peer */ +#define SS_PROTOREF 0x400 /* strong protocol reference */ /* * Socket state bits now stored in the socket buffer state field. |