aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing Xu <ting.xu@intel.com>2022-09-29 13:50:55 +0800
committerDave Wallace <dwallacelf@gmail.com>2022-10-25 02:07:51 +0000
commitad569da163d584e1df3803b3b51e4e05e5aef6ea (patch)
tree56b2befc7f50137405043ccef6035025d954f2c8
parent92ab02e8c0f31da37a3844d62f298c2cc0eeff3c (diff)
packetforge: fix GTP-Extension header field data
Fix the incorrect fields data of GTP-Extension header. Type: fix Signed-off-by: Ting Xu <ting.xu@intel.com> Change-Id: Iafc5e852910649afcf0e583a5513b1ab33f5b5e8 (cherry picked from commit c9d916c7cc312d2396985f5cb83bcfdb98c98a1f)
-rw-r--r--extras/packetforge/packetforge.py2
-rw-r--r--extras/packetforge/parsegraph/nodes/gtppsc.json6
2 files changed, 6 insertions, 2 deletions
diff --git a/extras/packetforge/packetforge.py b/extras/packetforge/packetforge.py
index 6a419bc7c4f..4f149dcd046 100644
--- a/extras/packetforge/packetforge.py
+++ b/extras/packetforge/packetforge.py
@@ -145,7 +145,7 @@ def GetMask(item):
if "format" in item:
format = item["format"]
if format == "mac":
- mask = "ff.ff.ff.ff.ff.ff"
+ mask = "ff:ff:ff:ff:ff:ff"
elif format == "ipv4":
mask = "255.255.255.255"
elif format == "ipv6":
diff --git a/extras/packetforge/parsegraph/nodes/gtppsc.json b/extras/packetforge/parsegraph/nodes/gtppsc.json
index d6814be503c..bf0ac11376f 100644
--- a/extras/packetforge/parsegraph/nodes/gtppsc.json
+++ b/extras/packetforge/parsegraph/nodes/gtppsc.json
@@ -4,7 +4,7 @@
"layout" : [
{
"name" : "length",
- "size" : "1",
+ "size" : "8",
"default" : "1",
"readonly" : "true"
},
@@ -23,6 +23,10 @@
{
"name" : "qfi",
"size" : "6"
+ },
+ {
+ "name" : "nextext",
+ "size" : "8"
}
]
}