projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
datapath: Fix build with backported skb_dst().
[openvswitch]
/
datapath
/
linux-2.6
/
compat-2.6
/
include
/
linux
/
netlink.h
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 c5f83bd07e88abf18058ab04e3b7bb33d8287467..fba899ecd5f1a6b8898679b282ec0a4b61cd3627 100644
(file)
--- 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);
}
{
return alloc_skb(size, flags);
}
-
#endif /* linux kernel < 2.6.19 */
#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
#endif