Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify calc_rtt and error out in 'animation' when the flow contains…
… no SYN packets Using 'animation' with a flow that has no SYN packets gives the following backtrace: Traceback (most recent call last): File "./captcp.py", line 5210, in <module> sys.exit(captcp.run()) File "./captcp.py", line 5191, in run pcap_parser.run() File "./captcp.py", line 562, in run self.callback(dt, packet.data) File "./captcp.py", line 4360, in process_packet self.process_local_side(ts, packet, tpi) File "./captcp.py", line 4302, in process_local_side (td, len(packet) / 2, self.rtt_data["twh-delay"] / self.acceleration)) KeyError: 'twh-delay' Error out properly in such conditions. Slightly simplify calc_rtt while we're at it Fixes Issue #15 - #15
- Loading branch information