Subject: CVS commit: src/sys/net
To: None <source-changes@NetBSD.org>
From: Manuel Bouyer <bouyer@netbsd.org>
List: source-changes
Date: 01/29/2007 22:13:14
Module Name:	src
Committed By:	bouyer
Date:		Mon Jan 29 22:13:14 UTC 2007

Modified Files:
	src/sys/net: if_ethersubr.c

Log Message:
Drop M_PROMISC before passing the packet to a carp device, for the same
reason it's dropped before passing to bridge: when a vlan interface is
in promisc mode, it will loop the packet back to ether_input() with
M_PROMISC set, and when carp calls ether_input again the flag is still
there and the packet is dropped. If the carp interface doesn't take
the packet M_PROMISC is set just after is needed anyway.
Tested on a box with multiple carp on vlans, no comments about this patch
on tech-net@


To generate a diff of this commit:
cvs rdiff -r1.143 -r1.144 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.