[Bug 270736] if_epair(4): Unexpected double tagged ICMP requests

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 10 Apr 2023 09:51:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270736

            Bug ID: 270736
           Summary: if_epair(4): Unexpected double tagged ICMP requests
           Product: Base System
           Version: 13.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: zlei@FreeBSD.org

Steps to repeat:

```
# ifconfig epair create
epair0a
# jail -ic vnet persist
1
# ifconfig epair0a 192.0.2.1/24 pcp 3
# ifconfig epair0b vnet 1
# jexec 1 ifconfig epair0b inet 192.0.2.2/24
# ping -C5 -c1 192.0.2.2
PING 192.0.2.2 (192.0.2.2): 56 data bytes

--- 192.0.2.2 ping statistics ---
1 packets transmitted, 0 packets received, 100.0% packet loss
```

tcpdump on epair0b shows the ICMP request packet is double tagged.
```
17:48:15.742959 02:56:4d:eb:12:0a > 02:56:4d:eb:12:0b, ethertype 802.1Q
(0x8100), length 106: vlan 0, p 5, ethertype 802.1Q, vlan 0, p 5, ethertype
IPv4, (tos 0x0, ttl 64, id 6424, offset 0, flags [none], proto ICMP (1), length
84)
    192.0.2.1 > 192.0.2.2: ICMP echo request, id 24072, seq 0, length 64
```

Expected behavior: The ICMP request packets should have only one PCP 5 tag.

-- 
You are receiving this mail because:
You are the assignee for the bug.