google / google/gopacket

Provide packet type in afpacket

Open
#1,050 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
6.8k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

In order to detect the packet direction during capture it would be extremely helpful to provide the packet type as reported by the kernel via the `sll_pkttype` from the `sockaddr_ll` struct (as an optional feature). Since this is available directly in the C struct as received in afpacket it's fairly easy to retrieve and should have minimal to zero performance impact. In addition, extraction can be made optional via an option setter to avoid any impact if not required.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.