Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Last bulk update of CSIT.
[csit.git]
/
resources
/
libraries
/
python
/
PacketVerifier.py
diff --git
a/resources/libraries/python/PacketVerifier.py
b/resources/libraries/python/PacketVerifier.py
index
81798e1
..
54f719f
100644
(file)
--- a/
resources/libraries/python/PacketVerifier.py
+++ b/
resources/libraries/python/PacketVerifier.py
@@
-188,7
+188,7
@@
def packet_reader(interface_name, queue):
buf = ""
while True:
buf = ""
while True:
- recvd = sock.recv(15
00
)
+ recvd = sock.recv(15
14
)
buf = buf + recvd
pkt = extract_one_packet(buf)
buf = buf + recvd
pkt = extract_one_packet(buf)
@@
-285,11
+285,7
@@
class Interface(object):
self.txq.send(pkt)
def recv_pkt(self, timeout=3):
self.txq.send(pkt)
def recv_pkt(self, timeout=3):
- while True:
- pkt = self.rxq.recv(timeout, self.sent_packets)
- # TODO: FIX FOLLOWING: DO NOT SKIP RARP IN ALL TESTS!!!
- if pkt.type != 32821: # Skip RARP packets
- return pkt
+ return self.rxq.recv(timeout, self.sent_packets)
def close(self):
self.rxq._proc.terminate()
def close(self):
self.rxq._proc.terminate()