Fix bug when parsing gtp traffic and inner headers
Change-Id: If3905e441719cdbfa2c9e4df173145bce5e7cada
(cherry picked from commit ae26f0aaf30b4d5cb4729f69b6810d11de7653ac)
diff --git a/pipelines/fabric/impl/src/main/resources/p4c-out/fabric-bng/bmv2/default/bmv2.json b/pipelines/fabric/impl/src/main/resources/p4c-out/fabric-bng/bmv2/default/bmv2.json
index 3d2d9bb..19a3cd9 100644
--- a/pipelines/fabric/impl/src/main/resources/p4c-out/fabric-bng/bmv2/default/bmv2.json
+++ b/pipelines/fabric/impl/src/main/resources/p4c-out/fabric-bng/bmv2/default/bmv2.json
@@ -1811,7 +1811,7 @@
"type" : "hexstr",
"value" : "0x06",
"mask" : null,
- "next_state" : "parse_tcp"
+ "next_state" : "parse_inner_tcp"
},
{
"type" : "hexstr",
@@ -1823,7 +1823,7 @@
"type" : "hexstr",
"value" : "0x01",
"mask" : null,
- "next_state" : "parse_icmp"
+ "next_state" : "parse_inner_icmp"
},
{
"type" : "default",
@@ -1862,6 +1862,54 @@
}
],
"transition_key" : []
+ },
+ {
+ "name" : "parse_inner_tcp",
+ "id" : 16,
+ "parser_ops" : [
+ {
+ "parameters" : [
+ {
+ "type" : "regular",
+ "value" : "inner_tcp"
+ }
+ ],
+ "op" : "extract"
+ }
+ ],
+ "transitions" : [
+ {
+ "type" : "default",
+ "value" : null,
+ "mask" : null,
+ "next_state" : null
+ }
+ ],
+ "transition_key" : []
+ },
+ {
+ "name" : "parse_inner_icmp",
+ "id" : 17,
+ "parser_ops" : [
+ {
+ "parameters" : [
+ {
+ "type" : "regular",
+ "value" : "inner_icmp"
+ }
+ ],
+ "op" : "extract"
+ }
+ ],
+ "transitions" : [
+ {
+ "type" : "default",
+ "value" : null,
+ "mask" : null,
+ "next_state" : null
+ }
+ ],
+ "transition_key" : []
}
]
}