X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fnetlink-protocol.h;h=1b5fa715389f62002f47d38bc375bcb5113d4866;hb=57d6a4c71bd0b4ed477ec273d4d4f84c5e4ed465;hp=6281fb2c3af2678ec86587a55d71ecad60efbc78;hpb=7c6244783982509fddd62b3296bc627943bb7a1a;p=openvswitch diff --git a/lib/netlink-protocol.h b/lib/netlink-protocol.h index 6281fb2c..1b5fa715 100644 --- a/lib/netlink-protocol.h +++ b/lib/netlink-protocol.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2010 Nicira Networks. + * Copyright (c) 2008, 2010, 2011 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -86,10 +86,6 @@ struct nlmsgerr }; BUILD_ASSERT_DECL(sizeof(struct nlmsgerr) == 20); -#define NETLINK_ADD_MEMBERSHIP 1 -#define NETLINK_DROP_MEMBERSHIP 2 -#define NETLINK_PKTINFO 3 - struct genlmsghdr { uint8_t cmd; uint8_t version; @@ -157,4 +153,11 @@ enum { #define NLA_TYPE_MASK ~(NLA_F_NESTED | NLA_F_NET_BYTEORDER) #endif +/* These were introduced all together in 2.6.14. (We want our programs to + * support the newer kernel features even if compiled with older headers.) */ +#ifndef NETLINK_ADD_MEMBERSHIP +#define NETLINK_ADD_MEMBERSHIP 1 +#define NETLINK_DROP_MEMBERSHIP 2 +#endif + #endif /* netlink-protocol.h */