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
diff --git a/extras/packetforge/packetforge.py b/extras/packetforge/packetforge.py
index 6a419bc..4f149dc 100644
--- a/extras/packetforge/packetforge.py
+++ b/extras/packetforge/packetforge.py
@@ -145,7 +145,7 @@
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 d6814be..bf0ac11 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"
}
]
}