X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Flinux%2Fcompat%2Finclude%2Fnet%2Fgenetlink.h;h=af7d5fd492ff8017336d31408c41087797f05e26;hb=08d19ca9fef29b23826f1fb52e2368a9077783ca;hp=c91408eeb0f8f17408d747552a0b826057e601a8;hpb=22bcc0e70becd88bf895c44885d63704affe4284;p=openvswitch diff --git a/datapath/linux/compat/include/net/genetlink.h b/datapath/linux/compat/include/net/genetlink.h index c91408ee..af7d5fd4 100644 --- a/datapath/linux/compat/include/net/genetlink.h +++ b/datapath/linux/compat/include/net/genetlink.h @@ -52,8 +52,7 @@ extern int busted_nlmsg_multicast(struct sock *sk, struct sk_buff *skb, * @list: list entry for linking * @family: pointer to family, need not be set before registering */ -struct genl_multicast_group -{ +struct genl_multicast_group { struct genl_family *family; /* private */ struct list_head list; /* private */ char name[GENL_NAMSIZ]; @@ -102,6 +101,10 @@ static inline int genlmsg_multicast_flags(struct sk_buff *skb, u32 pid, } #endif /* linux kernel < 2.6.19 */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32) +#define genlmsg_multicast_netns(net, skb, pid, grp, flags) \ + genlmsg_multicast(skb, pid, grp, flags) +#endif #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20) @@ -168,4 +171,7 @@ 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_net, skb, pid) genlmsg_unicast(skb, pid) +#endif #endif /* genetlink.h */