Subject: CVS commit: src/sys/net
To: None <firstname.lastname@example.org>
From: Manuel BOUYER <email@example.com>
Date: 03/25/2003 15:29:40
Module Name: src
Committed By: bouyer
Date: Tue Mar 25 13:29:40 UTC 2003
src/sys/net: if_ether.h if_ethersubr.c
Make promiscous mode work on vlans: introduce a new link-layer m_flag
M_PROMISC. In ether_input(), flag packets comming from an interface in
promiscous mode which are not for us M_PROMISC instead of droping them.
Drop M_PROMISC packets which are not passed to vlan_input(). M_PROMISC
packets passed to vlan_input() will be looped back to ether_input()
the M_PROMISC flag will be handled appropriately.
Clear M_PROMISC before giving the packet to bridge, as bridge has its own
checks for local MAC addresses.
This also makes bridges on vlan working.
To generate a diff of this commit:
cvs rdiff -r1.29 -r1.30 src/sys/net/if_ether.h
cvs rdiff -r1.105 -r1.106 src/sys/net/if_ethersubr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.