Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Test VIRL connection.
[csit.git]
/
resources
/
libraries
/
python
/
PacketVerifier.py
diff --git
a/resources/libraries/python/PacketVerifier.py
b/resources/libraries/python/PacketVerifier.py
index
566ea95
..
19d6aaf
100644
(file)
--- a/
resources/libraries/python/PacketVerifier.py
+++ b/
resources/libraries/python/PacketVerifier.py
@@
-232,6
+232,7
@@
class RxQueue(PacketVerifier):
return None
pkt = self._sock.recv(0x7fff)
return None
pkt = self._sock.recv(0x7fff)
+ pkt_pad = auto_pad(pkt)
print 'Received packet on {0} of len {1}'.format(self._ifname, len(pkt))
Ether(pkt).show2()
print
print 'Received packet on {0} of len {1}'.format(self._ifname, len(pkt))
Ether(pkt).show2()
print
@@
-241,7
+242,7
@@
class RxQueue(PacketVerifier):
# Auto pad all packets in ignore list
ignore[i] = auto_pad(ig_pkt)
for ig_pkt in ignore:
# Auto pad all packets in ignore list
ignore[i] = auto_pad(ig_pkt)
for ig_pkt in ignore:
- if ig_pkt == pkt:
+ if ig_pkt == pkt
_pad
:
# Found the packet in ignore list, get another one
# TODO: subtract timeout - time_spent in here
ignore.remove(ig_pkt)
# Found the packet in ignore list, get another one
# TODO: subtract timeout - time_spent in here
ignore.remove(ig_pkt)