aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/vnet.txt
diff options
context:
space:
mode:
authorHangbin Liu <liuhangbin@gmail.com>2019-06-26 11:21:34 +0800
committerDmitry Vyukov <dvyukov@google.com>2019-06-26 16:34:37 +0200
commitc2c0d4d6ae3a27d3c4457df81a03c06ddbe72282 (patch)
treecba2daf181ae65b368432dc1b709430c2bc1cc6d /sys/linux/vnet.txt
parent4d3422405ed6c68b57f24f80dcfd0abd3a2c6c1a (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/vnet.txt')
-rw-r--r--sys/linux/vnet.txt7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/linux/vnet.txt b/sys/linux/vnet.txt
index 636c1f0fc..b0038ff92 100644
--- a/sys/linux/vnet.txt
+++ b/sys/linux/vnet.txt
@@ -1424,12 +1424,11 @@ mpls_packet {
payload mpls_payload
} [packed]
-# TODO: is it this ordering or reverse?
mpls_label {
- ttl int32be:8
- s int32be:1
- tc int32be:3
label int32be:20
+ tc const[0, int32be:3]
+ s int32be:1
+ ttl const[0, int32be:8]
}
mpls_payload [