summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_socket.h
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1999-11-05 02:18:08 +0000
committerjulian <julian@FreeBSD.org>1999-11-05 02:18:08 +0000
commitf3be8b4e84953c69305f0c048a260a0d4ab83f71 (patch)
tree74ca5f49021d9864519ed64d34f586f71760d92c /sys/netgraph/ng_socket.h
parent034b0d2ccc94f20f14ffbbd93863ec6e8db5b4f8 (diff)
downloadFreeBSD-src-f3be8b4e84953c69305f0c048a260a0d4ab83f71.zip
FreeBSD-src-f3be8b4e84953c69305f0c048a260a0d4ab83f71.tar.gz
Add the option for a socket node to shut down when the last hook
to an adjoining node is removed. Also move file scope definitions back within the file, and remove un-needed include file.
Diffstat (limited to 'sys/netgraph/ng_socket.h')
-rw-r--r--sys/netgraph/ng_socket.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/netgraph/ng_socket.h b/sys/netgraph/ng_socket.h
index a84d12a..1aacdf3 100644
--- a/sys/netgraph/ng_socket.h
+++ b/sys/netgraph/ng_socket.h
@@ -51,6 +51,14 @@
#define NG_DATA 1
#define NG_CONTROL 2
+/* Commands */
+enum {
+ NGM_SOCK_CMD_NOLINGER = 1, /* close the soket on with last hook */
+ NGM_SOCK_CMD_LINGER /* Keep socket even if 0 hooks */
+};
+
+
+
/* Netgraph version of struct sockaddr */
struct sockaddr_ng {
u_char sg_len; /* total length */
OpenPOWER on IntegriCloud