CAIDA / pybgpstream

Python bindings for BGPStream
https://bgpstream.caida.org
BSD 2-Clause "Simplified" License
29 stars 23 forks source link

Expose elem's `orig_time_*` fields #35

Closed alistairking closed 3 years ago

alistairking commented 4 years ago

See https://github.com/CAIDA/libbgpstream/blob/b1b877e709e22fe4800eeff135154f045cae8ea7/lib/bgpstream_elem.h#L169 for information about what these fields contain (and what they don't contain).

This will hopefully help recover (some) timing information when processing BMP data that doesn't have an added collection timestamp. To this end, users may consider using some Python code similar to:

timestamp = rec.time
if timestamp == 0:
  timestamp = elem.orig_time