Open ajaykul opened 5 years ago
C.TP_STATUS_VLAN_VALID
: add C-code that #defines the constant (guarded with an #ifndef so it still works in older versions)
for struct tpacket3_hdr
you could do something similar - although for the corresponding #ifndef you would nee to search linux kernel git to find a #define that was added at the same time
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?