Mike Tancsa writes:
> >Not sure why this hasn't been detected before though. Below is
> >a possible patch.
>
> It has been at http://www.freebsd.org/cgi/query-pr.cgi?pr=25478 and
> discussed a few times in freebsd-net.
Here is the better (?) patch. I'd like to commit this if nobody
objects..
Luigi: would you mind reviewing this for possible BRIDGE problems?
-Archie
__________________________________________________________________________
Archie Cobbs * Packet Design * http://www.packetdesign.com
Index: if_ethersubr.c
===================================================================
RCS file: /home/ncvs/src/sys/net/if_ethersubr.c,v
retrieving revision 1.70.2.15
diff -u -r1.70.2.15 if_ethersubr.c
--- if_ethersubr.c 2001/03/13 22:00:32 1.70.2.15
+++ if_ethersubr.c 2001/03/27 20:39:38
@@ -366,6 +366,11 @@
{
int s, error = 0;
+ if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING)) {
+ m_freem(m);
+ return (ENETDOWN);
+ }
+
#ifdef BRIDGE
if (do_bridge && BDG_USED(ifp) ) {
struct ether_header *eh; /* a ptr suffices */
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message