command
Version:
v1.5.0
Opens a new window with list of versions in this module.
Published: Nov 2, 2025
License: BSD-3-Clause
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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)
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.