Augment md-type2 support within NSH API 99/2199/2
authorHongjun Ni <[email protected]>
Wed, 3 Aug 2016 10:51:27 +0000 (18:51 +0800)
committerHongjun Ni <[email protected]>
Wed, 3 Aug 2016 15:43:55 +0000 (23:43 +0800)
PatchSet 2: change tlv[256] to tlv[tlv_length]

Change-Id: I783483de0d55f38ad96c99faa701d735ba109f43
Signed-off-by: Hongjun Ni <[email protected]>
nsh-plugin/nsh/nsh.api

index 176dcd1..b1f39bc 100644 (file)
@@ -28,6 +28,8 @@ define nsh_add_del_entry {
     u32 c2;
     u32 c3;
     u32 c4;
+    u32 tlv_length;
+    u8 tlv[tlv_length];
 };
 
 /** \brief Reply from adding NSH entry (nsh_add_del_entry)
@@ -56,6 +58,8 @@ define nsh_entry_details {
     u32 c2;
     u32 c3;
     u32 c4;
+    u32 tlv_length;
+    u8 tlv[tlv_length];
 };
 
 /** \brief Set or delete a mapping from one NSH header to another and its egress (decap to inner packet, encap NSH with outer header)