unknown flow_sample_element: 0:2048
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ntop (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When using NTOP's sflow plugin, samples of ethernet packets aren't properly processed.
All packets are registered as non-IP, and a message "unknown flow_sample_
I found that this is happening because the SFlow Datagram have the MAC Address registered as a 8 bytes, while code treats it as only 6 bytes.
Also, when debugging sflow plugin, mac addresses bytes are written as signed integers, instead of unsigned char.
I suggest that sflow code (plugins/
-------
< if(SFLOW_
---
> if(SFLOW_
1613c1613
< if(SFLOW_
---
> if(SFLOW_
1881c1881
< sprintf(buf, "%02x%02x:
---
> sprintf(buf, "%02hx%
2371c2371
< skipBytes(sample, 6);
---
> skipBytes(sample, 8);
2373c2373
< skipBytes(sample, 6);
---
> skipBytes(sample, 8);
2378c2378
< if(SFLOW_
---
> if(SFLOW_
2380c2380
< if(SFLOW_
---
> if(SFLOW_
-------