mbox series

[iproute2-next,0/9] ip: Add support for nexthop objects

Message ID 20190530031746.2040-1-dsahern@kernel.org
Headers show
Series ip: Add support for nexthop objects | expand

Message

David Ahern May 30, 2019, 3:17 a.m. UTC
From: David Ahern <dsahern@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