Skip to content

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

@dmiller-nmap

Description

@dmiller-nmap
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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dmiller-nmap

        Issue actions

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