Skip to content

Comments

Support Linux SLL link type#945

Merged
GyulyVGC merged 10 commits intomainfrom
linux-sll
Sep 1, 2025
Merged

Support Linux SLL link type#945
GyulyVGC merged 10 commits intomainfrom
linux-sll

Conversation

@GyulyVGC
Copy link
Owner

@GyulyVGC GyulyVGC commented Aug 30, 2025

Support Linux SLL link type.

This finally makes it possible for Linux users to monitor the any interface, which is a pseudo device allowing to capture data on all the available interfaces.

This PR partially addresses #422.


In the initial implementation I tried to use etherparse's LaxPacketHeaders::from_linux_sll method, but it has some limitations:

  • only supports Linux SLL version 1
  • doesn't work with NULL / LOOPBACK traffic

So in the end I decided to manually extract the protocol type field from the header to overcome such limitations.

@GyulyVGC GyulyVGC added this to the v1.4.1 milestone Aug 30, 2025
@GyulyVGC GyulyVGC self-assigned this Aug 30, 2025
@GyulyVGC GyulyVGC added the enhancement New feature, request, or improvement label Aug 30, 2025
Copy link
Owner Author

@GyulyVGC GyulyVGC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@GyulyVGC GyulyVGC merged commit 3d8919f into main Sep 1, 2025
6 checks passed
@GyulyVGC GyulyVGC deleted the linux-sll branch September 1, 2025 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature, request, or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant