Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markzz/v6 64s #10

Open
wants to merge 8 commits into
base: sebjin/v6
Choose a base branch
from
Open

Markzz/v6 64s #10

wants to merge 8 commits into from

Conversation

markzz
Copy link
Member

@markzz markzz commented Dec 8, 2021

This should fix most of our woes with IPv6 processing.

If an IP-in-IP packet (protocol 4) is encountered, this will force it to
be classified as an Unknown packet.
On the branch sebjin/v6, no care was taken to make the msgp system
handle encoding/decoding a state file.

The fixes are as follows:

1. Change logic in Cache.load() to reinclude a loop for multiple objects
   in file.
2. Adds a field in the cache header to mark whether a file is IPv6 or
   not.
3. Adds new type IPv6Addr that implements msgp.Extension.
4. Regenerate all msgp generated files (which was not done).
Some fixes applied:

1. Fixed output of destination IP count.
2. Fixed output of unique destination /64s (labelled as /24s, maybe to
   be fixed later).
3. Changed up how IPv6 addresses for destinations are stored (new
   IPv6AddrSet type).
4. Regenerated msgp files with above changes.
@markzz markzz requested a review from mgkallit December 8, 2021 18:57
Mark King added 5 commits June 8, 2022 16:40
All of these parameters are set to false if we are not dealing with an
ipv4 packet.

Fixes: #12
Previously the traffic variable was not being set.

Fixes #14
This commit prevents a case where a packet could fall through and be erroneously set to ICMPEchoRequest.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant