Discover Packages
github.com/gopacket/gopacket
examples
linux_sll_test
command
Version:
v1.8.0
Opens a new window with list of versions in this module.
Published: Nov 19, 2026
License: BSD-3-Clause
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
Linux SLL Oversized Address Test Example
This example demonstrates the fix for oversized Linux SLL hardware addresses that previously caused panics.
Usage
go run main.go <pcap_file>
Example
Process the test pcap file that contains an oversized address:
go run main.go ../../layers/testdata/linux_sll_oversized_addr.pcapng
What It Tests
Graceful Handling: Verifies that packets with oversized addresses don't cause panics
Endpoint Validation: Ensures all flow endpoints are within MaxEndpointSize limits
Truncation: Confirms that oversized addresses are correctly truncated
Statistics: Provides detailed information about packet processing
Test Data
The included test pcap (linux_sll_oversized_addr.pcapng) contains:
209 total packets
204 Linux SLL packets
1 packet with a 22-byte hardware address (packet 91)
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.