diff options
Diffstat (limited to 'include/uapi/linux/netlink.h')
-rw-r--r-- | include/uapi/linux/netlink.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/netlink.h b/include/uapi/linux/netlink.h index f095155d8749..0dba4e4ed2be 100644 --- a/include/uapi/linux/netlink.h +++ b/include/uapi/linux/netlink.h | |||
@@ -107,8 +107,10 @@ struct nlmsgerr { | |||
107 | #define NETLINK_PKTINFO 3 | 107 | #define NETLINK_PKTINFO 3 |
108 | #define NETLINK_BROADCAST_ERROR 4 | 108 | #define NETLINK_BROADCAST_ERROR 4 |
109 | #define NETLINK_NO_ENOBUFS 5 | 109 | #define NETLINK_NO_ENOBUFS 5 |
110 | #ifndef __KERNEL__ | ||
110 | #define NETLINK_RX_RING 6 | 111 | #define NETLINK_RX_RING 6 |
111 | #define NETLINK_TX_RING 7 | 112 | #define NETLINK_TX_RING 7 |
113 | #endif | ||
112 | #define NETLINK_LISTEN_ALL_NSID 8 | 114 | #define NETLINK_LISTEN_ALL_NSID 8 |
113 | #define NETLINK_LIST_MEMBERSHIPS 9 | 115 | #define NETLINK_LIST_MEMBERSHIPS 9 |
114 | #define NETLINK_CAP_ACK 10 | 116 | #define NETLINK_CAP_ACK 10 |
@@ -134,6 +136,7 @@ struct nl_mmap_hdr { | |||
134 | __u32 nm_gid; | 136 | __u32 nm_gid; |
135 | }; | 137 | }; |
136 | 138 | ||
139 | #ifndef __KERNEL__ | ||
137 | enum nl_mmap_status { | 140 | enum nl_mmap_status { |
138 | NL_MMAP_STATUS_UNUSED, | 141 | NL_MMAP_STATUS_UNUSED, |
139 | NL_MMAP_STATUS_RESERVED, | 142 | NL_MMAP_STATUS_RESERVED, |
@@ -145,6 +148,7 @@ enum nl_mmap_status { | |||
145 | #define NL_MMAP_MSG_ALIGNMENT NLMSG_ALIGNTO | 148 | #define NL_MMAP_MSG_ALIGNMENT NLMSG_ALIGNTO |
146 | #define NL_MMAP_MSG_ALIGN(sz) __ALIGN_KERNEL(sz, NL_MMAP_MSG_ALIGNMENT) | 149 | #define NL_MMAP_MSG_ALIGN(sz) __ALIGN_KERNEL(sz, NL_MMAP_MSG_ALIGNMENT) |
147 | #define NL_MMAP_HDRLEN NL_MMAP_MSG_ALIGN(sizeof(struct nl_mmap_hdr)) | 150 | #define NL_MMAP_HDRLEN NL_MMAP_MSG_ALIGN(sizeof(struct nl_mmap_hdr)) |
151 | #endif | ||
148 | 152 | ||
149 | #define NET_MAJOR 36 /* Major 36 is reserved for networking */ | 153 | #define NET_MAJOR 36 /* Major 36 is reserved for networking */ |
150 | 154 | ||