[dts] [PATCH V1] tests/short_live: filter LLDP

lu,peipei peipeix.lu at intel.com
Fri Sep 29 04:15:44 CEST 2017


some nics send lldp,lead to the result is the lldp message,not the message want. 

Signed-off-by: lu,peipei <peipeix.lu at intel.com>
---
 tests/TestSuite_short_live.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/TestSuite_short_live.py b/tests/TestSuite_short_live.py
index d153975..c8cd741 100644
--- a/tests/TestSuite_short_live.py
+++ b/tests/TestSuite_short_live.py
@@ -102,7 +102,7 @@ class TestShortLiveApp(TestCase):
         if (txPort == rxPort):
             count = 2
 
-        self.tester.scapy_append('p=sniff(iface="%s",count=%d,timeout=5)' % (rxitf, count))
+        self.tester.scapy_append('p=sniff(iface="%s",filter="ether[12:2]!=0x88cc",count=%d,timeout=5)' % (rxitf, count))
         self.tester.scapy_append('RESULT=str(p[%d].show)' % (count-1))
 
         self.tester.scapy_foreground()
-- 
1.9.3



More information about the dts mailing list