test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/short_live: filter LLDP
@ 2017-09-29  2:15 lu,peipei
  0 siblings, 0 replies; only message in thread
From: lu,peipei @ 2017-09-29  2:15 UTC (permalink / raw)
  To: dts; +Cc: lu,peipei

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

Signed-off-by: lu,peipei <peipeix.lu@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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-09-29  2:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-29  2:15 [dts] [PATCH V1] tests/short_live: filter LLDP lu,peipei

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).