Skip to content

Commit a0d9a86

Browse files
roopa-prabhudavem330
authored andcommitted
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 <[email protected]> Suggested-by: Eric W. Biederman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2070c48 commit a0d9a86

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/uapi/linux/rtnetlink.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,8 @@ enum rtattr_type_t {
308308
RTA_VIA,
309309
RTA_NEWDST,
310310
RTA_PREF,
311+
RTA_ENCAP_TYPE,
312+
RTA_ENCAP,
311313
__RTA_MAX
312314
};
313315

0 commit comments

Comments
 (0)