Skip to content

iproute2: MPLS support (now with af_bit_len)

Eric W. Biederman netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8iproute2: Add a source addres length parameter to rt_addr_n2ainclude/utils.h ip/iplink_bond.c ip/ipmroute.c +8 more+41 -220 replies
1/8iproute2: Add a source addres length parameter to rt_addr_n2ainclude/utils.h ip/iplink_bond.c ip/ipmroute.c +8 more+41 -220 replies
2/8iproute2: Make the addr argument of ll_addr_n2a constinclude/rt_names.h lib/ll_addr.c+2 -20 replies
2/8iproute2: Make the addr argument of ll_addr_n2a constinclude/rt_names.h lib/ll_addr.c+2 -20 replies
3/8iproute2: Add support for printing AF_PACKET addresseslib/utils.c+16 -50 replies
3/8iproute2: Add support for printing AF_PACKET addresseslib/utils.c+16 -50 replies
4/8iproute2: Add address family to/from string helper functions.include/utils.h ip/ip.c lib/utils.c+41 -130 replies
4/8iproute2: Add address family to/from string helper functions.include/utils.h ip/ip.c lib/utils.c+41 -130 replies
5/8iproute2: misc whitespace cleanupip/iptunnel.c+1 -10 replies
5/8iproute2: misc whitespace cleanupip/iptunnel.c+1 -10 replies
6/8iproute2: Add support for RTA_VIA attributesinclude/linux/rtnetlink.h include/utils.h ip/iproute.c +1 more+90 -180 replies
6/8iproute2: Add support for the RTA_VIA attributeinclude/linux/rtnetlink.h include/utils.h ip/iproute.c +1 more+90 -188 replies
7/8iproute2: Add support for the RTA_NEWDST attribute.include/linux/rtnetlink.h ip/iproute.c man/man8/ip-route.8.in+24 -10 replies
7/8iproute2: Add support for the RTA_NEWDST attribute.include/linux/rtnetlink.h ip/iproute.c man/man8/ip-route.8.in+24 -10 replies
8/8iproute2: Add basic mpls support to iprouteMakefile include/linux/mpls.h include/linux/rtnetlink.h +9 more+200 -60 replies
8/8iproute2: Add basic mpls support to iprouteMakefile include/linux/mpls.h include/linux/rtnetlink.h +9 more+197 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/8] iproute2: MPLS support (now with af_bit_len)

This set of changes adds support for nexthops in different address families, with the new netlink RTA_VIA option.

Support is added for routes that change the destination address (as MPLS does) with the RTA_NEWDST attribute.

Support for MPLS addresses is added (for multiple labels I had to make up the syntax I used label/label/label as it fits in well with addresses that don't have a space in them).

Support for these options is merged into David's net-next kernel tree, and the meaning of the options is unlikely to change in any significant way before this code merges upstream.

The documentation has been updated to report that the new options are present and to report roughly what they do. This includes ip --help and the man pages.

Eric W. Biederman (8):
iproute2: Add a source addres length parameter to rt_addr_n2a
iproute2: Make the addr argument of ll_addr_n2a const
iproute2: Add support for printing AF_PACKET addresses
iproute2: Add address family to/from string helper functions.
iproute2: misc whitespace cleanup
iproute2: Add support for RTA_VIA attributes
iproute2: Add support for the RTA_NEWDST attribute.
iproute2: Add basic mpls support to iproute

 Makefile                  |   3 ++
 include/linux/mpls.h      |  34 +++++++++++++++
 include/linux/rtnetlink.h |  10 +++++
 include/rt_names.h        |   2 +-
 include/utils.h           |  22 ++++++++--
 ip/ip.c                   |  20 +++------
 ip/iplink_bond.c          |   1 +
 ip/ipmonitor.c            |   3 ++
 ip/ipmroute.c             |   2 +
 ip/ipprefix.c             |   4 +-
 ip/iproute.c              | 106 ++++++++++++++++++++++++++++++++++++++++------
 ip/iprule.c               |  10 +++--
 ip/iptunnel.c             |   4 +-
 ip/ipxfrm.c               |  17 +++++---
 ip/link_ip6tnl.c          |   2 +
 ip/xfrm_monitor.c         |   8 ++--
 lib/ll_addr.c             |   2 +-
 lib/mpls_ntop.c           |  48 +++++++++++++++++++++
 lib/mpls_pton.c           |  58 +++++++++++++++++++++++++
 lib/utils.c               |  90 +++++++++++++++++++++++++++++++++++----
 man/man8/ip-route.8.in    |  23 +++++++---
 man/man8/ip.8             |   7 ++-
 22 files changed, 410 insertions(+), 66 deletions(-)