patch-1.3.31 linux/include/net/netlink.h
Next file: linux/init/main.c
Previous file: linux/include/linux/tasks.h
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Mon Oct 2 14:25:11 1995
- Orig file:
v1.3.30/linux/include/net/netlink.h
- Orig date:
Thu Jan 1 02:00:00 1970
diff -u --recursive --new-file v1.3.30/linux/include/net/netlink.h linux/include/net/netlink.h
@@ -0,0 +1,13 @@
+#define NET_MAJOR 18 /* Major 18 is reserved for networking */
+#define MAX_LINKS 3 /* 18,0 for route updates, 18,1 for SKIP */
+#define MAX_QBYTES 32768 /* Maximum bytes in the queue */
+
+extern int netlink_attach(int unit, int (*function)(struct sk_buff *skb));
+extern void netlink_detach(int unit);
+extern int netlink_post(int unit, struct sk_buff *skb);
+extern void init_netlink(void);
+
+#define NETLINK_ROUTE 0 /* Routing/device hook */
+#define NETLINK_SKIP 1 /* Reserved for ENskip */
+#define NETLINK_USERSOCK 2 /* Reserved for user mode socket protocols */
+
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this