diff options
| author | Hangbin Liu <liuhangbin@gmail.com> | 2019-06-26 11:21:34 +0800 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-06-26 16:34:37 +0200 |
| commit | c2c0d4d6ae3a27d3c4457df81a03c06ddbe72282 (patch) | |
| tree | cba2daf181ae65b368432dc1b709430c2bc1cc6d /sys/linux/socket_netlink_route_arm.const | |
| parent | 4d3422405ed6c68b57f24f80dcfd0abd3a2c6c1a (diff) | |
sys/linux: update mpls_lable and rta types
Kernel get mpls lable like
```
unsigned entry = be32_to_cpu(hdr->label_stack_entry);
result.label = (entry & MPLS_LS_LABEL_MASK) >> MPLS_LS_LABEL_SHIFT;
```
So we just need to store the label in big endian order.
For mpls rta types, kernel accpet only one lable for RTA_DST and
multi labels for RTA_NEWDST.
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Diffstat (limited to 'sys/linux/socket_netlink_route_arm.const')
| -rw-r--r-- | sys/linux/socket_netlink_route_arm.const | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/linux/socket_netlink_route_arm.const b/sys/linux/socket_netlink_route_arm.const index 6cb8989d0..7c7ef6fec 100644 --- a/sys/linux/socket_netlink_route_arm.const +++ b/sys/linux/socket_netlink_route_arm.const @@ -357,6 +357,7 @@ RTA_GATEWAY = 5 RTA_MARK = 16 RTA_METRICS = 8 RTA_MULTIPATH = 9 +RTA_NEWDST = 19 RTA_OIF = 4 RTA_PREF = 20 RTA_PREFSRC = 7 @@ -364,6 +365,7 @@ RTA_PRIORITY = 6 RTA_SRC = 2 RTA_TTL_PROPAGATE = 26 RTA_UID = 25 +RTA_VIA = 18 RTM_DELADDR = 21 RTM_DELLINK = 17 RTM_DELNEIGH = 29 |
