Closed atenart closed 1 year ago
Updated the PR with the other event part: internal representation. Also refactored some parts.
Updated the PR taking into account @amorenoz comments, in addition to:
Having concluded that regardless of the decision we make on https://github.com/net-trace/packet-tracer/pull/53#discussion_r1048290385 it won't change the infrastructure significantly, I think the PR is in a good shape.
Having concluded that regardless of the decision we make on #53 (comment) it won't change the infrastructure significantly, I think the PR is in a good shape.
Agreed. The discussion was quite interesting, but I have the feeling that a preference will stand out based on the level of flexibility/consistency we'd need. Looked at the PR from a formal point of view as well and LGTM too. Any potential overlook (if any) may perfectly be addressed in subsequent patches, considering this series is needed for multiple reasons. Going to merge it. <-- small correction, just marking it as approved until the conversations are "officially" marked as resolved :) Feel free to merge the series straight away after marking them
Following our discussion, I think we kind of agreed on at least the BPF <> Rust event logic (dynamic, variable length, tlv-ish). I implemented a first version to at least validate this would work, and it surprisingly does :)
Things we hadn't settled on and can change:
HashMap<String, String>
when unmarshaling.Events are also currently not propagated after unmarshaling. Also One thing I'm not happy with for now is the naming in the event module.
Based on #51.