genlmsg_unicast() API changed for network namespace in 2.6.32. Following patch handles compatibility with older kernel.
Signed-off-by: Pravin Shelar <[email protected]> --- datapath/linux/compat/include/net/genetlink.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/datapath/linux/compat/include/net/genetlink.h b/datapath/linux/compat/include/net/genetlink.h index c91408e..035394e 100644 --- a/datapath/linux/compat/include/net/genetlink.h +++ b/datapath/linux/compat/include/net/genetlink.h @@ -168,4 +168,12 @@ static inline struct net *genl_info_net(struct genl_info *info) } #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32) +#define genlmsg_unicast(ignore_sk, skb, pid) rpl_genlmsg_unicast(skb, pid) + +static inline int rpl_genlmsg_unicast(struct sk_buff *skb, u32 pid) +{ + return nlmsg_unicast(genl_sock, skb, pid); +} +#endif #endif /* genetlink.h */ -- 1.7.1 _______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev
