netlink-protocol: Add more definitions.
authorAlin Serdean <aserdean@cloudbasesolutions.com>
Tue, 29 Jul 2014 15:22:03 +0000 (15:22 +0000)
committerBen Pfaff <blp@nicira.com>
Tue, 29 Jul 2014 16:32:20 +0000 (09:32 -0700)
Add MAX_LINKS define needed for nl_pool.

Add NLM_F_CREATE and NLM_F_EXCL defines also.

Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/netlink-protocol.h

index 88b7abf..8938055 100644 (file)
@@ -48,7 +48,9 @@
 
 #define NLM_F_ROOT              0x100
 #define NLM_F_MATCH             0x200
+#define NLM_F_EXCL              0x200
 #define NLM_F_ATOMIC            0x400
+#define NLM_F_CREATE            0x400
 #define NLM_F_DUMP              (NLM_F_ROOT | NLM_F_MATCH)
 
 /* nlmsg_type values. */
@@ -59,6 +61,8 @@
 
 #define NLMSG_MIN_TYPE          0x10
 
+#define MAX_LINKS               32
+
 struct nlmsghdr {
     uint32_t nlmsg_len;
     uint16_t nlmsg_type;