[Bug 224961] VLAN ID 0 Not Supported

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jan 8 18:47:44 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224961

Eugene Grosbein <eugen at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eugen at freebsd.org

--- Comment #3 from Eugene Grosbein <eugen at freebsd.org> ---
(In reply to johnllyon from comment #2)

Incoming ethernet frames tagged with zero vlan tag are not correct, so first
operation should be conversion of such frames to standard untagged frames.

ng_vlan should perform this flawlessly if configured with command like "ngctl
msg vlan: addfilter '{ vlan=0 hook="untagged" }' and hook "untagged" connected
to ng_eiface node that creates ngeth0 interface.

Also, ng_vlan's "downstream" hook should be connected to ng_ether node
corresponding "real" interface like em0 and its hook "lower". Then real
interface passes incoming packets to ng_vlan instead of normal delivery.
ng_vlan strips incorrect vlan tag and result is delivered normally as received
from ngeth0.

Ethernet frames received without vlan tag will be dropped by this comple schema
but it is possible to process them too by inserting ng_tee node into the graph.
ng_tee is capable of combining two streams of data into single one and passing
it to arbitrary next node.

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


More information about the freebsd-net mailing list