{"record":{"id":"800684fd60823e3f","repo":"probelabs/goreplay","slug":"not-implemented","errorCode":null,"errorMessage":"Not implemented","messagePattern":"Not implemented","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/capture/af_packet.go","lineNumber":14,"sourceCode":"//go:build !linux\n\npackage capture\n\nimport (\n\t\"fmt\"\n\t\"time\"\n\n\t\"github.com/google/gopacket\"\n)\n\nfunc newAfpacketHandle(device string, snaplen int, block_size int, num_blocks int,\n\tuseVLAN bool, timeout time.Duration) (*afpacketHandle, error) {\n\treturn nil, fmt.Errorf(\"Not implemented\")\n}\n\nfunc afpacketComputeSize(targetSizeMb int, snaplen int, pageSize int) (\n\tframeSize int, blockSize int, numBlocks int, err error) {\n\treturn 0, 0, 0, fmt.Errorf(\"Not implemented\")\n}\n\ntype afpacketHandle struct{}\n\n// ReadPacketData satisfies PacketDataSource interface\nfunc (h *afpacketHandle) ReadPacketData() (data []byte, ci gopacket.CaptureInfo, err error) {\n\treturn nil, gopacket.CaptureInfo{}, fmt.Errorf(\"Not implemented\")\n}\n\n// SetBPFFilter translates a BPF filter string into BPF RawInstruction and applies them.\nfunc (h *afpacketHandle) SetBPFFilter(filter string, snaplen int) (err error) {\n\treturn fmt.Errorf(\"Not implemented\")\n}","sourceCodeStart":1,"sourceCodeEnd":32,"githubUrl":"https://github.com/probelabs/goreplay/blob/251e45abd242886bb64ff2b2dc98789556b56330/internal/capture/af_packet.go#L1-L32","documentation":"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.","triggerScenarios":"Thrown at internal/capture/af_packet.go:14 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"251e45abd242886bb64ff2b2dc98789556b56330","analyzedAt":"2026-09-02T16:44:11.369Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T21:17:11.164Z"}