[dts] [PATCH v1 2/4] dep vxlan: add variable for vxlan port

Marvin Liu yong.liu at intel.com
Fri Apr 22 03:31:59 CEST 2016


Add this variable for related suites can retrieve this value.

Signed-off-by: Marvin Liu <yong.liu at intel.com>

diff --git a/dep/vxlan.py b/dep/vxlan.py
index e50d4b4..8fc914b 100644
--- a/dep/vxlan.py
+++ b/dep/vxlan.py
@@ -11,6 +11,7 @@ from scapy.layers.l2 import Ether
 
 vxlanmagic = "0x8"
 
+VXLAN_PORT=4789
 
 class Vxlan(Packet):
     name = "Virtual eXtensible Local Area Network"
@@ -29,5 +30,5 @@ class Vxlan(Packet):
         return self.sprintf("VXLAN (vni=%VXLAN.vni%)")
 
 split_layers(UDP, DNS, sport=53)
-bind_layers(UDP, Vxlan, dport=4789)
+bind_layers(UDP, Vxlan, dport=VXLAN_PORT)
 bind_layers(Vxlan, Ether)
-- 
1.9.3



More information about the dts mailing list