netlink-protocol: Define missing symbols.
authorEthan Jackson <ethan@nicira.com>
Fri, 2 Sep 2011 01:48:29 +0000 (18:48 -0700)
committerEthan Jackson <ethan@nicira.com>
Fri, 2 Sep 2011 15:03:57 +0000 (08:03 -0700)
OVS fails to build with xenddk-56100build3926 because it has an
outdated genetlink header.

lib/netlink-protocol.h

index 1b5fa715389f62002f47d38bc375bcb5113d4866..64f773e5a171d893fb73132714e9e1bcf55e5a5c 100644 (file)
 #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