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

feat(producer): refactor encapsulation and configuration #342

Merged
merged 64 commits into from
Aug 18, 2024

Conversation

lspgn
Copy link
Member

@lspgn lspgn commented Aug 4, 2024

For protobuf producer (converting from sFlow/NetFlow/IPFIX into a unique protobuf sample).
This includes work from #306 #236 in regards to encapsulation:

  • refactoring of the configuration with interfaces (eg: for library use)
  • the packet parser implementation has an environment to allow custom layer parser and port parsding
  • improve parsing function (GetBytes)
  • refactoring of the packet parsing (sFlow and IPFIX datagrams)
    • not a loop anymore
  • encapsulated fields are parsed separately
  • add Geneve, GRE IPv6 Routing Header (srv6) parsing

TODO:

  • cleanup old legacy code
  • proof read docs
  • make sure a mapping can be truncated (eg: dump up to 1500 bytes above ipv6 layer...)

@lspgn lspgn added enhancement New feature or request producer Conversion from flow to protobuf labels Aug 4, 2024
@lspgn lspgn mentioned this pull request Aug 5, 2024
@lspgn lspgn merged commit ec96100 into main Aug 18, 2024
1 check passed
@lspgn lspgn deleted the lspgn/encaprefactor branch August 18, 2024 00:28
lspgn added a commit that referenced this pull request Aug 19, 2024
Configuration and ProtoProducer now rely on interface to be extended more easily.
The packet parser has been rewritten to support encapsulation (also on top of UDP).
Adds SRv6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request producer Conversion from flow to protobuf
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant