From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 2E8DC475E for ; Fri, 22 Apr 2016 03:32:15 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 21 Apr 2016 18:32:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,515,1455004800"; d="scan'208";a="937671566" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga001.jf.intel.com with ESMTP; 21 Apr 2016 18:32:11 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id u3M1W92w006569; Fri, 22 Apr 2016 09:32:09 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id u3M1W6Pd025099; Fri, 22 Apr 2016 09:32:08 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id u3M1W6SU025095; Fri, 22 Apr 2016 09:32:06 +0800 From: Marvin Liu To: dts@dpdk.org Cc: Marvin Liu Date: Fri, 22 Apr 2016 09:31:59 +0800 Message-Id: <1461288721-25049-3-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1461288721-25049-1-git-send-email-yong.liu@intel.com> References: <1461288721-25049-1-git-send-email-yong.liu@intel.com> Subject: [dts] [PATCH v1 2/4] dep vxlan: add variable for vxlan port X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2016 01:32:15 -0000 Add this variable for related suites can retrieve this value. Signed-off-by: Marvin Liu 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