X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fnetlink-protocol.h;h=6281fb2c3af2678ec86587a55d71ecad60efbc78;hb=8eb307e09f9b793ec28f0de49442a128f0a633ba;hp=77f5c8965f796fd229135e41aefb897514956c2f;hpb=365a25176bf854112b37c56888979d7755ab0d72;p=openvswitch diff --git a/lib/netlink-protocol.h b/lib/netlink-protocol.h index 77f5c896..6281fb2c 100644 --- a/lib/netlink-protocol.h +++ b/lib/netlink-protocol.h @@ -150,4 +150,11 @@ enum { #define CTRL_ATTR_OP_MAX (__CTRL_ATTR_OP_MAX - 1) #endif /* !HAVE_NETLINK */ +/* These were introduced all together in 2.6.24. */ +#ifndef NLA_TYPE_MASK +#define NLA_F_NESTED (1 << 15) +#define NLA_F_NET_BYTEORDER (1 << 14) +#define NLA_TYPE_MASK ~(NLA_F_NESTED | NLA_F_NET_BYTEORDER) +#endif + #endif /* netlink-protocol.h */