Many of our functions pass around a pointer to Netlink attributes
and a length. This exposes the version of nl_attr_find that takes
that format so it can be used by callers outside the Netlink library.
return nl_policy_parse(&buf, 0, policy, attrs, n_attrs);
}
-static const struct nlattr *
+const struct nlattr *
nl_attr_find__(const struct nlattr *attrs, size_t size, uint16_t type)
{
const struct nlattr *nla;
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 */