cfm: Cleanup output of ovs-appctl "cfm/show" command.
[openvswitch] / lib / netlink.h
index b1bf5858b530ab9763069de6bf43b46355715950..2206339cbb46e496d4f7ed55ad278f0c5937f424 100644 (file)
@@ -98,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
@@ -160,5 +160,7 @@ bool nl_parse_nested(const struct nlattr *, const struct nl_policy[],
 const struct nlattr *nl_attr_find(const struct ofpbuf *, size_t hdr_len,
                                   uint16_t type);
 const struct nlattr *nl_attr_find_nested(const struct nlattr *, uint16_t type);
+const struct nlattr *nl_attr_find__(const struct nlattr *attrs, size_t size,
+                                    uint16_t type);
 
 #endif /* netlink.h */