diff options
author | Jesse Gross <jesse@nicira.com> | 2011-06-23 17:10:00 -0700 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2011-06-24 14:37:49 -0700 |
commit | 22bcc0e70becd88bf895c44885d63704affe4284 (patch) | |
tree | 4c29e6843c3972be5bced192a968217eb1c2190b /datapath/linux-2.6/compat-2.6/include/linux/netlink.h | |
parent | 8c7ea6a0c0d44f707eef136b77ac0dd1c55509a4 (diff) |
datapath: Rename linux-2.6 and compat-2.6 directories.
The linux-2.6 and compat-2.6 directories apply equally to the upcoming
Linux 3.0 release, so this drops the 2.6 suffix and updates Makefiles.
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'datapath/linux-2.6/compat-2.6/include/linux/netlink.h')
-rw-r--r-- | datapath/linux-2.6/compat-2.6/include/linux/netlink.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/datapath/linux-2.6/compat-2.6/include/linux/netlink.h b/datapath/linux-2.6/compat-2.6/include/linux/netlink.h deleted file mode 100644 index 16660977..00000000 --- a/datapath/linux-2.6/compat-2.6/include/linux/netlink.h +++ /dev/null @@ -1,35 +0,0 @@ -#ifndef __LINUX_NETLINK_WRAPPER_H -#define __LINUX_NETLINK_WRAPPER_H 1 - -#include <linux/skbuff.h> -#include_next <linux/netlink.h> - -#ifndef NLA_TYPE_MASK -#define NLA_F_NESTED (1 << 15) -#define NLA_F_NET_BYTEORDER (1 << 14) -#define NLA_TYPE_MASK ~(NLA_F_NESTED | NLA_F_NET_BYTEORDER) -#endif - -#include <net/netlink.h> -#include <linux/version.h> - -#ifndef NLMSG_DEFAULT_SIZE -#define NLMSG_DEFAULT_SIZE (NLMSG_GOODSIZE - NLMSG_HDRLEN) -#endif - -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) -#define nlmsg_new(s, f) nlmsg_new_proper((s), (f)) -static inline struct sk_buff *nlmsg_new_proper(int size, gfp_t flags) -{ - return alloc_skb(size, flags); -} -#endif /* linux kernel < 2.6.19 */ - -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22) -static inline struct nlmsghdr *nlmsg_hdr(const struct sk_buff *skb) -{ - return (struct nlmsghdr *)skb->data; -} -#endif - -#endif |