projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2070c48
)
rtnetlink: introduce new RTA_ENCAP_TYPE and RTA_ENCAP attributes
author
Roopa Prabhu
<
[email protected]
>
Tue, 21 Jul 2015 08:43:45 +0000
(10:43 +0200)
committer
David S. Miller
<
[email protected]
>
Tue, 21 Jul 2015 17:39:03 +0000
(10:39 -0700)
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]
>
include/uapi/linux/rtnetlink.h
patch
|
blob
|
history
diff --git
a/include/uapi/linux/rtnetlink.h
b/include/uapi/linux/rtnetlink.h
index fdd8f07f1d34bd419dbd2c3f62eb09a659842cb4..0d3d3cc43356e128bc618acbde912fe6b5524ff0 100644
(file)
--- a/
include/uapi/linux/rtnetlink.h
+++ b/
include/uapi/linux/rtnetlink.h
@@
-308,6
+308,8
@@
enum rtattr_type_t {
RTA_VIA,
RTA_NEWDST,
RTA_PREF,
+ RTA_ENCAP_TYPE,
+ RTA_ENCAP,
__RTA_MAX
};