Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sflow ipv6 tos field parsing of Traffic Class field in packet header. #772

Open
supaflyg opened this issue Mar 20, 2024 · 1 comment
Open

Comments

@supaflyg
Copy link

Description
Sfacctd tos field is omitting right 2 bits of the tc field for ipv6 sflow sampled traffic.

Example: sfacctd ipv6 tos field returns value 28 with TC value of 00011100 and 00011101.

Ipv4 tos values are representative of the TOS in the packet header.

If this is expected behavior is there method or means to extract the value of all 8 bits of the ipv6 TC field?

If not, is there a configuration or setting that I am missing for ipv6 tos field parsing?

Version
$ sfacctd -V
sFlow Accounting Daemon, sfacctd 1.7.8-git [RELEASE]

Arguments:
'--enable-jansson' '--enable-l2' '--enable-64bit' '--enable-traffic-bins' '--enable-st-bins' '--enable-kafka' '--enable-bgp-bins' '--enable-bmp-bins'

Libs:
cdada 0.4.0
libpcap version 1.10.1 (with TPACKET_V3)
rdkafka 2.3.0
jansson 2.13.1

Plugins:
memory
print
nfprobe
sfprobe
tee
kafka

System:
Linux 6.2.0-1018-aws #18~22.04.1-Ubuntu SMP Wed Jan 10 22:54:16 UTC 2024 x86_64

Compiler:
gcc 11.4.0

@paololucente
Copy link
Member

paololucente commented Mar 23, 2024

Hi @supaflyg ,

Thanks for bringing this up. Could you send me a pcap where the issue can be reproduced and we can have an expected right outcome? Here or by unicast email. Just to briefly confirm this looks like a bug / limitation so there is no config knob to alter behaviour.

Paolo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants