ofpbuf: New function ofpbuf_clone_data_with_headroom().
[openvswitch] / lib / netlink-protocol.h
index 77f5c8965f796fd229135e41aefb897514956c2f..6281fb2c3af2678ec86587a55d71ecad60efbc78 100644 (file)
@@ -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 */