python: Implement write support in Python IDL for OVSDB.
[sliver-openvswitch.git] / lib / netlink.h
index 5aa06a3..0bd2c41 100644 (file)
@@ -83,8 +83,11 @@ enum nl_attr_type
     NL_A_UNSPEC,
     NL_A_U8,
     NL_A_U16,
+    NL_A_BE16 = NL_A_U16,
     NL_A_U32,
+    NL_A_BE32 = NL_A_U32,
     NL_A_U64,
+    NL_A_BE64 = NL_A_U64,
     NL_A_STRING,
     NL_A_FLAG,
     NL_A_NESTED,
@@ -95,7 +98,7 @@ enum nl_attr_type
 static inline struct nlattr *
 nl_attr_next(const struct nlattr *nla)
 {
-    return (struct nlattr *) ((uint8_t *) nla + NLA_ALIGN(nla->nla_len));
+    return (void *) ((uint8_t *) nla + NLA_ALIGN(nla->nla_len));
 }
 
 static inline bool