probelabs/goreplay · error
Not implemented
Error message
Not implemented
What it means
Non-Linux stub in internal/capture: newAfpacketHandle and afpacketComputeSize have no implementation off Linux and always return this placeholder error, so requesting afpacket capture there fails at handle creation.
Source
Thrown at internal/capture/af_packet.go:14
//go:build !linux
package capture
import (
"fmt"
"time"
"github.com/google/gopacket"
)
func newAfpacketHandle(device string, snaplen int, block_size int, num_blocks int,
useVLAN bool, timeout time.Duration) (*afpacketHandle, error) {
return nil, fmt.Errorf("Not implemented")
}
func afpacketComputeSize(targetSizeMb int, snaplen int, pageSize int) (
frameSize int, blockSize int, numBlocks int, err error) {
return 0, 0, 0, fmt.Errorf("Not implemented")
}
type afpacketHandle struct{}
// ReadPacketData satisfies PacketDataSource interface
func (h *afpacketHandle) ReadPacketData() (data []byte, ci gopacket.CaptureInfo, err error) {
return nil, gopacket.CaptureInfo{}, fmt.Errorf("Not implemented")
}
// SetBPFFilter translates a BPF filter string into BPF RawInstruction and applies them.
func (h *afpacketHandle) SetBPFFilter(filter string, snaplen int) (err error) {
return fmt.Errorf("Not implemented")
}View on GitHub (pinned to 251e45abd2)
Solutions
- Run capture on Linux where AF_PACKET is implemented
- Fall back to the pcap capture engine on macOS/BSD
- Don't construct afpacket handles on unsupported GOOS
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at internal/capture/af_packet.go:14 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of probelabs/goreplay@251e45abd2 (2026-09-02).
Data as JSON: /api/errors/800684fd60823e3f.
Report an issue: GitHub.