[prev in list] [next in list] [prev in thread] [next in thread]
List: dpdk-dts
Subject: [dts] [PATCH v3 15/17] tests/vlan_ethertype_config: Replace sniff_packets to tester.tcpdump_sniff_pa
From: Phil Yang <phil.yang () arm ! com>
Date: 2018-04-02 3:46:24
Message-ID: 1522640786-26646-15-git-send-email-phil.yang () arm ! com
[Download RAW message or body]
Make sniff_packet running on the tester. Create a ssh connection to the
tester then call tcpdump.
Signed-off-by: Phil Yang <phil.yang@arm.com>
---
tests/TestSuite_vlan_ethertype_config.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tests/TestSuite_vlan_ethertype_config.py b/tests/TestSuite_vlan_ethertype_config.py
index 1fb30fb..413ec89 100644
--- a/tests/TestSuite_vlan_ethertype_config.py
+++ b/tests/TestSuite_vlan_ethertype_config.py
@@ -43,7 +43,6 @@ import utils
from test_case import TestCase
from pmd_output import PmdOutput
-from packet import Packet, sniff_packets, load_sniff_packets
from scapy.utils import struct, socket, wrpcap, rdpcap
from scapy.layers.inet import Ether, IP, TCP, UDP, ICMP
from scapy.layers.l2 import Dot1Q, ARP, GRE
@@ -125,7 +124,7 @@ class TestVlanEthertypeConfig(TestCase):
# off
self.dmac = self.dut.get_mac_address(dutRxPortId)
- self.inst = sniff_packets(self.rxItf)
+ self.inst = self.tester.tcpdump_sniff_packets(self.rxItf)
pkt = []
if outer_vid < 0 or outer_tpid <= 0:
pkt = [
--
2.7.4
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic