commit | 303cc9cbeed6cfb9f08a4073f07cb466cc8098e8 | [log] [tgz] |
---|---|---|
author | Roopa Prabhu <roopa@cumulusnetworks.com> | Thu Oct 15 13:13:38 2015 +0200 |
committer | Stephen Hemminger <shemming@brocade.com> | Fri Oct 16 16:00:47 2015 -0700 |
tree | fdb863fdc7190905a0d3194a9db5a88b66e8b3ef | |
parent | 0ee9052f1bc2f632b7a181aaaee28584fd82cc18 [diff] |
libnetlink: introduce rta_nest and u8, u16, u64 helpers for nesting within rtattr This patch introduces two new api's rta_nest and rta_nest_end to nest attributes inside a rta attribute represented by 'struct rtattr' as required to construct a nexthop. Also adds rta_addattr* variants for u8, u16 and u64 as needed to support encapsulation. Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com> Signed-off-by: Thomas Graf <tgraf@suug.ch> Acked-by: Jiri Benc <jbenc@redhat.com>