Compiling af_packet on 2.6 kernel
Open
- Dominant language
- Go
- Stars
- 6.8k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I am using a 2.6 kernel to compile af_packet. I see that the linux/if_packet.h does not have the fields and structs that are introduced by afpacket/header.go.
22:20:28 gopath/src/github.com/../vendor/github.com/google/gopacket/afpacket/header.go:148:24: could not determine kind of name for C.TP_STATUS_VLAN_VALID
22:20:28 gopath/src/github.com/../vendor/github.com/google/gopacket/afpacket/header.go:174:103: could not determine kind of name for C.sizeof_struct_tpacket3_hdr
I am trying to find a solution to fix this issue. How do you recommend we compile on older kernels?
Contributor guide
Assessment
This issue has not been assessed yet.