diff options
Diffstat (limited to 'pcaputil.py')
| -rw-r--r-- | pcaputil.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pcaputil.py b/pcaputil.py index c6432fe..048e156 100644 --- a/pcaputil.py +++ b/pcaputil.py @@ -242,6 +242,7 @@ def collect_packets(header_iter_gen): def collector(start_src, start_dst): packets = [] history = [] + output = [] src, dst = start_src, start_dst header_iter = header_iter_gen(src, dst) hdr_size, hdr_ctor, size_from_hdr, pkt_ctor = header_iter.next() @@ -249,7 +250,9 @@ def collect_packets(header_iter_gen): header = pkt = None searched_size = hdr_size while True: - src, dst, payload = yield CollectorResult(src, dst, msg) + collector_result = CollectorResult(src, dst, msg) + output.append(collector_result) + src, dst, payload = yield collector_result packets.append(payload) history.append(payload) logger.debug("collect_packets: (%s->%s) searching for %s (%s)" % (src, dst, |
