Re: VLAN, Linux, and raw sockets

Ben Greear <[email protected]>
Newsgroups gmane.linux.drivers.vlan
Organization Candela Technologies
Message-ID <[email protected]>
JOJAN wrote:
> Let me make a slight correction. VLAN is implemented in Layer -2, that is
> Link Layer, not Physical Layer. 
> 
> Also, I doubt, if you can get packets to all VLANs from an application which
> listens on eth0. Only untagged frames will be available from eth0. All
> tagged frames will be diverted to eth0.x. Now, the virtual interfaces act as
> protocol driver (L3) to the eth0 driver. But they expose themselves as a L2
> NIC driver to the IP stack. (They register themselves as net_device).
> 
> IMHO, you can use hooks provided in the stack, like netfilter etc. or the
> services provided by netpcap.

eth0 _will_ see all packets, but the only protocols that will see these
packets are the vlan protocol (ie, vlan devices), and proto-all, which is
what tcpdump, etc use.

Ben

-- 
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.