diff options
author | Jesse Gross <jesse@nicira.com> | 2011-09-23 11:53:12 -0700 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2011-09-23 15:27:49 -0700 |
commit | 0b6c119bb7e62c70770a18504ae4204702020435 (patch) | |
tree | 68789ff9347da0d60cb4383788429c27ebd55d39 /lib/netlink.h | |
parent | 1e276d1a10539a8cd97d2ad63c073a9a43f0f1ef (diff) | |
download | openvswitch-0b6c119bb7e62c70770a18504ae4204702020435.tar.gz |
netlink: Expose version of nl_attr_find for key and len.
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.
Diffstat (limited to 'lib/netlink.h')
-rw-r--r-- | lib/netlink.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/netlink.h b/lib/netlink.h index 0bd2c41e6..2206339cb 100644 --- a/lib/netlink.h +++ b/lib/netlink.h @@ -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 */ |