From: David Ahern <dsah...@gmail.com> This set adds support for nexthop objects to the ip command. The syntax for nexthop objects is identical to the current 'ip route .. nexthop ...' syntax making it easy to convert existing use cases.
David Ahern (9): libnetlink: Set NLA_F_NESTED in rta_nest lwtunnel: Pass encap and encap_type attributes to lwt_parse_encap libnetlink: Add helper to add a group via setsockopt uapi: Import nexthop object API libnetlink: Add helper to create nexthop dump request ip route: Export print_rt_flags and print_rta_if ip: Add support for nexthop objects ip route: Add option to use nexthop objects ipmonitor: Add nexthop option to monitor include/libnetlink.h | 7 +- include/uapi/linux/nexthop.h | 56 +++++ ip/Makefile | 3 +- ip/ip.c | 3 +- ip/ip_common.h | 8 +- ip/ipmonitor.c | 24 ++ ip/ipnexthop.c | 571 +++++++++++++++++++++++++++++++++++++++++++ ip/iproute.c | 25 +- ip/iproute_lwtunnel.c | 7 +- lib/libnetlink.c | 34 +++ 10 files changed, 723 insertions(+), 15 deletions(-) create mode 100644 include/uapi/linux/nexthop.h create mode 100644 ip/ipnexthop.c -- 2.11.0