cloudflare / goflow

The high-scalability sFlow/NetFlow/IPFIX collector used internally at Cloudflare.
BSD 3-Clause "New" or "Revised" License
852 stars 171 forks source link

sflow decode record ipv4 and ipv6 data will cause binary.Read: invalid type *sflow.SampledIP_Base #129

Open deadspacewii opened 5 months ago

deadspacewii commented 5 months ago

as i say, I use golang 1.21, when i decode ipv4 data binary.Read: invalid type *sflow.SampledIP_Base apper. i found when binary.Read decode into a struct and the struct have a slice ,the err occur