patch-2.1.15 linux/include/linux/netlink.h

Next file: linux/include/linux/notifier.h
Previous file: linux/include/linux/netdevice.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.14/linux/include/linux/netlink.h linux/include/linux/netlink.h
@@ -0,0 +1,20 @@
+#ifndef __LINUX_NETLINK_H
+#define __LINUX_NETLINK_H
+
+struct nlmsghdr
+{
+	unsigned long	nlmsg_len;	/* Length of message including header */
+	unsigned long	nlmsg_type;	/* Message type */
+	unsigned long	nlmsg_seq;	/* Sequence number */
+	unsigned long	nlmsg_pid;	/* Sending process PID */
+	unsigned char	nlmsg_data[0];
+};
+
+#define NLMSG_ALIGN(len) ( ((len)+sizeof(long)-1) & ~(sizeof(long)-1) )
+
+#define NLMSG_ACK		0x01	/* int - error code */
+#define NLMSG_OVERRUN		0x02	/* unsigned long[2] - start and end
+					 * of lost message sequence numbers.
+					 */
+
+#endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov