diff options
author | Fangyin Hu <fangyinx.hu@intel.com> | 2017-10-25 21:47:04 -0700 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2017-10-26 06:01:43 +0000 |
commit | eb9eec208b6e66bf585546ffe5a9554a48fe1208 (patch) | |
tree | a590e05dd3c7783460d5c9fa88d8593b3b17e7cb /resources/libraries/python/SFC/TunnelProtocol.py | |
parent | 977851f65718fb82d804dc095a2ddd9735a67b89 (diff) |
Update the NSH protocol header fields
Fix the NSH SFC functional test cases failed issues.
Change-Id: I5d49b50a8c0958dc8db4bc10d6852f0cf4e77962
Signed-off-by: Fangyin Hu <fangyinx.hu@intel.com>
Diffstat (limited to 'resources/libraries/python/SFC/TunnelProtocol.py')
-rw-r--r-- | resources/libraries/python/SFC/TunnelProtocol.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/resources/libraries/python/SFC/TunnelProtocol.py b/resources/libraries/python/SFC/TunnelProtocol.py index 4b4377c895..3248cf9103 100644 --- a/resources/libraries/python/SFC/TunnelProtocol.py +++ b/resources/libraries/python/SFC/TunnelProtocol.py @@ -35,7 +35,9 @@ class VxLANGPE(Packet): class NSH(Packet): """Define the NSH protocol for the packet analysis.""" name = "nsh" - fields_desc = [XBitField("flags", 0x0, 10), XBitField("length", 0x6, 6), - XByteField("MDtype", 0x1), XByteField("nextproto", 0x3), + fields_desc = [XBitField("Version", 0x0, 2), XBitField("OAM", 0x0, 1), + XBitField("Unassigned", 0x0, 1), XBitField("TTL", 0x0, 6), + XBitField("length", 0x6, 6), XBitField("Unassigned", 0x0, 4), + XBitField("MDtype", 0x1, 4), XByteField("nextproto", 0x3), IntField("nsp_nsi", 0), IntField("c1", 0), IntField("c2", 0), IntField("c3", 0), IntField("c4", 0)] |