X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=lib%2Fnetlink-protocol.h;h=521c5bffd0dd586bc619a7b1545a5204049351eb;hb=9c8e276ec3f4a3368ec1cb7f713543d46d8ad23a;hp=1b5fa715389f62002f47d38bc375bcb5113d4866;hpb=cceb11f5b12d09cc8afc87ca4fd03e941234d439;p=openvswitch diff --git a/lib/netlink-protocol.h b/lib/netlink-protocol.h index 1b5fa715..521c5bff 100644 --- a/lib/netlink-protocol.h +++ b/lib/netlink-protocol.h @@ -36,6 +36,7 @@ #ifdef HAVE_NETLINK #include #include + #else #define NETLINK_GENERIC 16 @@ -160,4 +161,22 @@ enum { #define NETLINK_DROP_MEMBERSHIP 2 #endif +/* These were introduced all together in 2.6.23. (We want our programs to + * support the newer kernel features even if compiled with older headers.) */ +#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 */ + #endif /* netlink-protocol.h */