test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1 1/3][scapy vxlan] dep/vxlan: modify class name from Vxlan to VXLAN
@ 2019-07-23  0:50 lihong
  2019-07-23  0:50 ` [dts] [PATCH V1 2/3][scapy vxlan] framework: update vxlan " lihong
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: lihong @ 2019-07-23  0:50 UTC (permalink / raw)
  To: dts; +Cc: lihong

from scapy 2.3.3, the vxlan is supported by default, so unify the
class name between high version and low version.

Signed-off-by: lihong <lihongx.ma@intel.com>
---
 dep/vxlan.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/dep/vxlan.py b/dep/vxlan.py
index 8fc914b..d160718 100644
--- a/dep/vxlan.py
+++ b/dep/vxlan.py
@@ -13,16 +13,16 @@ vxlanmagic = "0x8"
 
 VXLAN_PORT=4789
 
-class Vxlan(Packet):
-    name = "Virtual eXtensible Local Area Network"
-    fields_desc = [ByteField("flag", 8),
+class VXLAN(Packet):
+    name = "VXLAN"
+    fields_desc = [ByteField("flags", 8),
                    X3BytesField("reserved1", 0),
                    X3BytesField("vni", 0),
                    ByteField("reserved2", 0)]
 
     def guess_payload_class(self, payload):
         if self.flag == vxlanmagic:
-            return Vxlan
+            return VXLAN
         else:
             return Packet.guess_payload_class(self, payload)
 
@@ -30,5 +30,5 @@ class Vxlan(Packet):
         return self.sprintf("VXLAN (vni=%VXLAN.vni%)")
 
 split_layers(UDP, DNS, sport=53)
-bind_layers(UDP, Vxlan, dport=VXLAN_PORT)
-bind_layers(Vxlan, Ether)
+bind_layers(UDP, VXLAN, dport=VXLAN_PORT)
+bind_layers(VXLAN, Ether)
-- 
2.7.4


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-07-23  9:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-23  0:50 [dts] [PATCH V1 1/3][scapy vxlan] dep/vxlan: modify class name from Vxlan to VXLAN lihong
2019-07-23  0:50 ` [dts] [PATCH V1 2/3][scapy vxlan] framework: update vxlan " lihong
2019-07-23  9:13   ` Zhu, ShuaiX
2019-07-23  0:50 ` [dts] [PATCH V1 3/3][scapy vxlan] tests: " lihong
2019-07-23  9:14   ` Zhu, ShuaiX
2019-07-23  9:13 ` [dts] [PATCH V1 1/3][scapy vxlan] dep/vxlan: modify class " Zhu, ShuaiX

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).