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

Evaluate olen implementation for IPv4 Options and IPv6 Extension Headers under the pnet Library #36

Open
biandratti opened this issue Dec 17, 2024 · 0 comments
Milestone

Comments

@biandratti
Copy link
Owner

In the p0f tool, the olen field is defined as: "length of IPv4 options or IPv6 extension headers. Usually zero for normal IPv4 traffic; always zero for IPv6 due to the limitations of libpcap."

The pnet library in Rust provides functionality to parse IPv4 and IPv6 packets, but it's unclear how IPv4 options (variable-length header) or IPv6 extension headers are handled and if the olen calculation can be implemented effectively.

Objective

  1. Evaluate if the pnet library can provide:
  • The IPv4 options length (olen) based on the IHL field.
  • The total length of IPv6 extension headers.
  1. Identify any limitations or gaps in the pnet implementation when compared to the behavior described in p0f.
@biandratti biandratti added this to the 0.1.0 milestone Dec 17, 2024
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

No branches or pull requests

1 participant