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

Figure out & fix the LinkLayer issue with Raw #37

Closed
synfinatic opened this issue Oct 17, 2020 · 0 comments · Fixed by #38 · May be fixed by #70
Closed

Figure out & fix the LinkLayer issue with Raw #37

synfinatic opened this issue Oct 17, 2020 · 0 comments · Fixed by #38 · May be fixed by #70
Assignees
Labels
enhancement New feature or request

Comments

@synfinatic
Copy link
Owner

The whole thing about Raw interfaces is because LinkLayer for RAW is 101, but calling pcap.Handle.LinkType() returns the DLT not the LinkType! The result is for Raw interfaces you get either 12 or 14 (depending on OS) instead of 101 which causes nothing but pain. :-/

@synfinatic synfinatic added the enhancement New feature or request label Oct 17, 2020
synfinatic added a commit that referenced this issue Oct 17, 2020
Finally understood what was going on... TL;DR: gopacket/layers.LinkType
is kinda fubar because DLT != Linktype.

For more context: https://www.tcpdump.org/linktypes.html

Fixes #37
synfinatic added a commit that referenced this issue Oct 19, 2020
Finally understood what was going on... TL;DR: gopacket/layers.LinkType
is kinda fubar because DLT != Linktype.

For more context: https://www.tcpdump.org/linktypes.html

Fixes #37
synfinatic added a commit that referenced this issue Oct 19, 2020
Finally understood what was going on... TL;DR: gopacket/layers.LinkType
is kinda fubar because DLT != Linktype.

For more context: https://www.tcpdump.org/linktypes.html

Fixes #37
@synfinatic synfinatic self-assigned this Oct 20, 2020
synfinatic added a commit that referenced this issue Oct 21, 2020
Finally understood what was going on... TL;DR: gopacket/layers.LinkType
is kinda fubar because DLT != Linktype.

For more context: https://www.tcpdump.org/linktypes.html

Fixes #37
synfinatic added a commit that referenced this issue Dec 13, 2020
Finally understood what was going on... TL;DR: gopacket/layers.LinkType
is kinda fubar because DLT != Linktype.

For more context: https://www.tcpdump.org/linktypes.html

Fixes #37
synfinatic added a commit that referenced this issue Oct 12, 2021
Finally understood what was going on... TL;DR: gopacket/layers.LinkType
is kinda fubar because DLT != Linktype.

For more context: https://www.tcpdump.org/linktypes.html

Fixes #37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant