From c2c0d4d6ae3a27d3c4457df81a03c06ddbe72282 Mon Sep 17 00:00:00 2001 From: Hangbin Liu Date: Wed, 26 Jun 2019 11:21:34 +0800 Subject: 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 --- sys/linux/socket_netlink_route_arm.const | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/linux/socket_netlink_route_arm.const') 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 -- cgit mrf-deployment