summaryrefslogtreecommitdiff
path: root/lib/flow.c
diff options
context:
space:
mode:
authorJan Scheurich <jan.scheurich@ericsson.com>2017-11-07 00:40:21 +0100
committerBen Pfaff <blp@ovn.org>2017-11-08 12:33:45 -0800
commit9a180f2c002adf73951e0ee9990c44e5e5cd4a0f (patch)
tree0260f361e23e940481cb10ebb79e9ce0181e8f06 /lib/flow.c
parent7edef47b4896135b2c4ca62e4458fb9a5f3fff44 (diff)
downloadopenvswitch-9a180f2c002adf73951e0ee9990c44e5e5cd4a0f.tar.gz
NSH: Adjust NSH wire format to the latest IETF draft
This commit adjusts the NSH user space implementation in OVS to the latest wire format defined in draft-ietf-sfc-nsh-28 (November 3 2017). The NSH_MDTYPE field was reduced from 8 to 4 bits. The FLAGS field is reduced from 8 to 2 bits. A new 6 bit TTL header field is added. The TTL field is set to 63 at encap(nsh). Match and set_field support for the newly introduced TTL header field and a corresponding dec_nsh_ttl action is not yet included and will be implemented in a future patch. Signed-off-by: Jan Scheurich <jan.scheurich@ericsson.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'lib/flow.c')
-rw-r--r--lib/flow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/flow.c b/lib/flow.c
index e30ca98bd..1adc49970 100644
--- a/lib/flow.c
+++ b/lib/flow.c
@@ -546,7 +546,7 @@ parse_nsh(const void **datap, size_t *sizep, struct flow_nsh *key)
memset(key, 0, sizeof(struct flow_nsh));
- ver_flags_len = ntohs(nsh->ver_flags_len);
+ ver_flags_len = ntohs(nsh->ver_flags_ttl_len);
version = (ver_flags_len & NSH_VER_MASK) >> NSH_VER_SHIFT;
flags = (ver_flags_len & NSH_FLAGS_MASK) >> NSH_FLAGS_SHIFT;