david415/HoneyBadger

pcap log rotation for connection log quota

david415 opened this issue · 4 comments

We do indeed need a way to enforce an on-disk quota of pcap logs per each connection tracked. A log rotation scheme can easily accomplish this goal.

work in progress:

here's a rough quota enforced Writer using a log rotation scheme:
346babd

It just occurred to me that each new pcap file will need the appropriate pcap header written to the beginning...

so far i've made numerous bug fixes to the dev branch... and it seems to work now:
https://github.com/david415/HoneyBadger/tree/62-rotating-pcap

reopening... due to reverting several bad commits... we are going to reapply these changes or make similar new ones.

fixed... finally!