Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Aug 2021 01:51:58 +0200
From:      Peter <pmc@citylink.dinoex.sub.org>
To:        freebsd-hackers@freebsd.org
Subject:   TAP device deletes VLAN tag? (netgraph related)
Message-ID:  <YQXiHsrUYfN3wgXT@gate.intra.daemon.contact>

next in thread | raw e-mail | index | archive | help

Sending here since "stable" still doesn't work...

Hi all,                                                                         
                                                                                
  I found a problem when connecting tap devices.                                
In the most straightforward way I would do                                      
                                                                                
# ngctl connect tap1: fxp0: lower lower                                         
                                                                                
Then doing tcpdump on both netifs, the originating (in my case tap0)            
has the VLAN tag, and the receiving doesn't show it anymore.                    
                                                                                
The same happens when attaching a tap device to a ng_bridge or ng_hub:          
the tap device (and the bhyve behind it) will not see the VLAN tags             
arriving from elsewhere on the bridge.                                          
                                                                                
The tap device itself seems to support vlan tags. So the problem                
appears to be most likely related to the netgraph hook of the tap               
device (the lower, in my case).                                                 
                                                                                
This is Rel. 12.2 running. Is this a known problem? Is there a patch            
or workaround known?                                                            
                                                                                
rgds,                                                                           
PMc                                                                             



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YQXiHsrUYfN3wgXT>