Skip to content

afpacket: add protocol option that can be passed to NewTPacket#135

Merged
mosajjal merged 1 commit intogopacket:masterfrom
MarcusWichelmann:afpacket-opt-protocol
Oct 25, 2025
Merged

afpacket: add protocol option that can be passed to NewTPacket#135
mosajjal merged 1 commit intogopacket:masterfrom
MarcusWichelmann:afpacket-opt-protocol

Conversation

@MarcusWichelmann
Copy link
Copy Markdown
Contributor

By default, NewTPacket uses ETH_P_ALL to receive packets for all Ethernet protocols. This default is kept as is, but can now optionally be modified using a new OptProtocol.

By default, NewTPacket uses ETH_P_ALL to receive packets for all
Ethernet protocols. This default is kept as is, but can now optionally
be modified using a new OptProtocol.
@mosajjal mosajjal merged commit e229ad0 into gopacket:master Oct 25, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants