Fix for igmp test recv to ignore traffic other than test traffic
diff --git a/src/test/igmp/igmpTest.py b/src/test/igmp/igmpTest.py
index 3a0ad15..b6ad1a2 100644
--- a/src/test/igmp/igmpTest.py
+++ b/src/test/igmp/igmpTest.py
@@ -148,8 +148,12 @@
##Runs in the context of twisted reactor thread
def igmp_recv(self, igmpState, iface = 'veth0'):
p = self.recv_socket.recv()
- send_time = float(p.payload.load)
- recv_time = monotonic.monotonic()
+ try:
+ send_time = float(p.payload.load)
+ recv_time = monotonic.monotonic()
+ except:
+ log.info('Unexpected Payload received: %s' %p.payload.load)
+ return 0
#log.info( 'Recv in %.6f secs' %(recv_time - send_time))
igmpState.update(p.dst, rx = 1, t = recv_time - send_time)
return 0