diff options
| author | Ethan Jackson <ethan@nicira.com> | 2011-09-01 18:48:29 -0700 |
|---|---|---|
| committer | Ethan Jackson <ethan@nicira.com> | 2011-09-02 08:03:57 -0700 |
| commit | b0025c8389f6b8d0087df3468c14072a9935eb61 (patch) | |
| tree | 7e2700f91a9365471dba3e48515fc59c358d56bf /lib | |
| parent | c7178a0b3e1c399bd8ac4bbdff48906ab6995f77 (diff) | |
| download | openvswitch-b0025c8389f6b8d0087df3468c14072a9935eb61.tar.gz | |
netlink-protocol: Define missing symbols.
OVS fails to build with xenddk-56100build3926 because it has an
outdated genetlink header.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/netlink-protocol.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/netlink-protocol.h b/lib/netlink-protocol.h index 1b5fa7153..64f773e5a 100644 --- a/lib/netlink-protocol.h +++ b/lib/netlink-protocol.h @@ -36,6 +36,25 @@ #ifdef HAVE_NETLINK #include <linux/netlink.h> #include <linux/genetlink.h> + +/* Some Xenddks have an outdated genetlink header file which doesn't have some + * symbols it should. */ +#ifndef CTRL_ATTR_MCAST_GRP_MAX + +#undef CTRL_ATTR_MAX +#define CTRL_ATTR_MAX 7 +#define CTRL_ATTR_MCAST_GROUPS 7 + +enum { + CTRL_ATTR_MCAST_GRP_UNSPEC, + CTRL_ATTR_MCAST_GRP_NAME, + CTRL_ATTR_MCAST_GRP_ID, + __CTRL_ATTR_MCAST_GRP_MAX, +}; + +#define CTRL_ATTR_MCAST_GRP_MAX (__CTRL_ATTR_MCAST_GRP_MAX - 1) +#endif /* CTRL_ATTR_MCAST_GRP_MAX */ + #else #define NETLINK_GENERIC 16 |
