]> git.baikalelectronics.ru Git - kernel.git/commit
rtnetlink: introduce new RTA_ENCAP_TYPE and RTA_ENCAP attributes
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Tue, 21 Jul 2015 08:43:45 +0000 (10:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2015 17:39:03 +0000 (10:39 -0700)
commita7caeb0314e64f0e17fe41fe6ddb77c4e9566849
tree1c04ed2a5674258d06d0b1ae8c4ae4a7e5d6162c
parentdc69cd99bb7f95e3a9dc45c98fd72e145ce0ab64
rtnetlink: introduce new RTA_ENCAP_TYPE and RTA_ENCAP attributes

This patch introduces two new RTA attributes to attach encap
data to fib routes.

Example iproute2 command to attach mpls encap data to ipv4 routes

$ip route add 10.1.1.0/30 encap mpls 200 via inet 10.1.1.1 dev swp1

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Suggested-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/rtnetlink.h