Index: sys/net/bridge.c =================================================================== RCS file: /home/ncvs/src/sys/net/bridge.c,v retrieving revision 1.24 diff -u -r1.24 bridge.c --- sys/net/bridge.c 2000/09/14 14:42:02 1.24 +++ sys/net/bridge.c 2000/09/24 00:11:30 @@ -772,6 +772,9 @@ m_freem(m); if (canfree == 0) /* m was a copy */ m_freem(*m0); +#ifdef DIAGNOSTIC + printf("bdg_forward: No rules match, so dropping packet!\n"); +#endif *m0 = NULL ; return 0 ; } Index: sys/net/if_ethersubr.c =================================================================== RCS file: /home/ncvs/src/sys/net/if_ethersubr.c,v retrieving revision 1.81 diff -u -r1.81 if_ethersubr.c --- sys/net/if_ethersubr.c 2000/07/29 02:00:12 1.81 +++ sys/net/if_ethersubr.c 2000/09/24 00:11:37 @@ -446,8 +446,16 @@ m_freem(m); return; } - if (bif != BDG_LOCAL) + if (bif != BDG_LOCAL) { bdg_forward(&m, eh, bif); /* needs forwarding */ + /* + * Do not continue if bdg_forward() processed our + * packet (and cleared the mbuf pointer m) or if + * it dropped (m_free'd) the packet itself. + */ + if (m == NULL) + return; + } if (bif == BDG_LOCAL || bif == BDG_BCAST || bif == BDG_MCAST)