aboutsummaryrefslogtreecommitdiff
path: root/datapath/linux-2.6/compat-2.6/include/linux/netlink.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2009-07-15 12:46:06 -0700
committerBen Pfaff <blp@nicira.com>2009-07-16 09:18:23 -0700
commit3c303e5fe1061b8715be018ae8e535cbc24303c9 (patch)
treefa33008f2c5afe9eaeee152efbd88619f7eea33f /datapath/linux-2.6/compat-2.6/include/linux/netlink.h
parente5307f55aa89b7ade27cb4bf92223c3b9c099eef (diff)
Implement "brctl showmacs" support in brcompat and ovs-brcompatd.
This is needed by the Citrix test infrastructure.
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.h7
1 files changed, 6 insertions, 1 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
index c5f83bd0..fba899ec 100644
--- a/datapath/linux-2.6/compat-2.6/include/linux/netlink.h
+++ b/datapath/linux-2.6/compat-2.6/include/linux/netlink.h
@@ -17,8 +17,13 @@ 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