Subject: CVS commit: src/sys/net
To: None <source-changes@NetBSD.org>
From: Julian Coleman <jdc@netbsd.org>
List: source-changes
Date: 09/16/2003 17:37:30
Module Name:	src
Committed By:	jdc
Date:		Tue Sep 16 17:37:29 UTC 2003

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

Log Message:
Add a flag parameter to bridge_enqueue() to tell it whether to run the
filter or not.  We only need to run the filter for bridge_forward() and
bridge_broadcast().  If we also run it for bridge_output(), we will run
the filter twice outbound per packet, so don't.

In bridge_ipf(), make sure we don't run m_cat() on a single mbuf chain
by checking to see (and remembering) if we need to m_split() the mbuf.
This fixes bridge + ipfilter on sparc.

Fixes PR kern/22063.


To generate a diff of this commit:
cvs rdiff -r1.17 -r1.18 src/sys/net/if_bridge.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.