Skip to content

Npcap 1.81 clears high-order bit of 802.1p priority when injecting packets with 802.1q frame header #783

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

Closed
dmiller-nmap opened this issue Apr 9, 2025 · 0 comments
Labels

Comments

@dmiller-nmap
Copy link
Contributor

The UserPriority field of the VLAN tag header was being extracted with the bitmask 0x70, selecting the 2nd through 4th bits, instead of 0xe0, selecting the 1st through 3rd bits. The resulting value is right-shifted 5 bits, so the effect was to clear the high-order bit so a priority of 7 became 3, 5 became 1, etc.

This issue was discovered by a Npcap OEM licensee and was fixed in c267418.

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

No branches or pull requests

1 participant