From: Ethan Jackson Date: Fri, 2 Sep 2011 01:48:29 +0000 (-0700) Subject: netlink-protocol: Define missing symbols. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0025c8389f;p=openvswitch netlink-protocol: Define missing symbols. OVS fails to build with xenddk-56100build3926 because it has an outdated genetlink header. --- diff --git a/lib/netlink-protocol.h b/lib/netlink-protocol.h index 1b5fa715..64f773e5 100644 --- a/lib/netlink-protocol.h +++ b/lib/netlink-protocol.h @@ -36,6 +36,25 @@ #ifdef HAVE_NETLINK #include #include + +/* 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