cloudflare / goflow

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

sFlow: support IPv4/IPv6 sampled header #79

Open leoluk opened 4 years ago

leoluk commented 4 years ago

goflow supports only Ethernet(1) sampled headers. However, some devices do not send an Ethernet header and send sampled IPv4/IPv6 headers instead, which are currently ignored:

https://github.com/cloudflare/goflow/blob/f27eadb178457d36e1ff0f685a19562be16654c2/producer/producer_sf.go#L41

Similar to https://github.com/VerizonDigital/vflow/pull/50