diff --git a/network_monitor.py b/network_monitor.py index e9fcfa5..73f034e 100644 --- a/network_monitor.py +++ b/network_monitor.py @@ -10,6 +10,8 @@ import signal from sulley import pedrpc +MAX_PACKET_LENGTH = 65535 # Max packet length for IP capture + def log_error(message=None): try: @@ -174,7 +176,7 @@ def pre_send (self, test_number): self.log("initializing capture for test case #%d" % test_number) # open the capture device and set the BPF filter. - self.pcap = pcapy.open_live(self.device, -1, 1, 100) + self.pcap = pcapy.open_live(self.device, MAX_PACKET_LENGTH, 1, 100) self.pcap.setfilter(self.filter) # instantiate the capture thread.