|
NAMEng_vlan —
IEEE 802.1Q VLAN tagging netgraph node type
SYNOPSIS#include <sys/types.h>
#include <netgraph.h>
#include <netgraph/ng_vlan.h>
DESCRIPTIONThevlan node type multiplexes frames tagged according
to the IEEE 802.1Q standard between different hooks.
Each node has two special hooks, downstream and nomatch, and an arbitrary number of “vlan” hooks, each associated with a particular VLAN tag. An An Ethernet frame received on the nomatch hook is passed unmodified to the downstream hook. An Ethernet frame received on any of the “vlan” hooks is tagged accordingly and sent out the downstream hook. HOOKSThis node type supports the following hooks:
CONTROL MESSAGESThis node type supports the generic control messages, plus the following:
EXAMPLES#!/bin/sh ETHER_IF=rl0 ngctl -f- <<EOF shutdown ${ETHER_IF}: mkpeer ${ETHER_IF}: vlan lower downstream name ${ETHER_IF}:lower vlan connect ${ETHER_IF}: vlan: upper nomatch EOF ngctl mkpeer vlan: eiface vlan123 ether ngctl msg vlan: addfilter '{ vlan=123 hook="vlan123" }' SHUTDOWNThis node shuts down upon receipt of aNGM_SHUTDOWN
control message, or when all hooks have been disconnected.
SEE ALSOnetgraph(4), ng_eiface(4), ng_ether(4), ngctl(8), nghook(8)HISTORYTheng_vlan node type appeared in
FreeBSD 4.10.
AUTHORSRuslan Ermilov <ru@FreeBSD.org>
Visit the GSP FreeBSD Man Page Interface. |