summaryrefslogtreecommitdiffstats
path: root/sys/net/if_fddisubr.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1998-06-14 20:58:17 +0000
committerjulian <julian@FreeBSD.org>1998-06-14 20:58:17 +0000
commit7e20c7add6fbd44b2164c1501d1c47f6258b5251 (patch)
tree0b692860e7ae8587eb052e0049d42270cd17cbe4 /sys/net/if_fddisubr.c
parenta75c402e98f5929ad6951b05b2999a6ada735c48 (diff)
downloadFreeBSD-src-7e20c7add6fbd44b2164c1501d1c47f6258b5251.zip
FreeBSD-src-7e20c7add6fbd44b2164c1501d1c47f6258b5251.tar.gz
Try narrow down the culprit sending undefined packet types through the loopback
Diffstat (limited to 'sys/net/if_fddisubr.c')
-rw-r--r--sys/net/if_fddisubr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/if_fddisubr.c b/sys/net/if_fddisubr.c
index ee4e847..823bf4d 100644
--- a/sys/net/if_fddisubr.c
+++ b/sys/net/if_fddisubr.c
@@ -33,7 +33,7 @@
* SUCH DAMAGE.
*
* from: if_ethersubr.c,v 1.5 1994/12/13 22:31:45 wollman Exp
- * $Id: if_fddisubr.c,v 1.30 1998/05/21 00:33:16 dg Exp $
+ * $Id: if_fddisubr.c,v 1.31 1998/06/12 03:48:08 julian Exp $
*/
#include "opt_atalk.h"
@@ -301,6 +301,7 @@ fddi_output(ifp, m0, dst, rt0)
case AF_UNSPEC:
{
struct ether_header *eh;
+ loop_copy = -1;
eh = (struct ether_header *)dst->sa_data;
(void)memcpy((caddr_t)edst, (caddr_t)eh->ether_dhost, sizeof (edst));
if (*edst & 1)
@@ -386,7 +387,8 @@ fddi_output(ifp, m0, dst, rt0)
* on the wire). However, we don't do that here for security
* reasons and compatibility with the original behavior.
*/
- if (ifp->if_flags & IFF_SIMPLEX) {
+ if ((ifp->if_flags & IFF_SIMPLEX) &&
+ (loop_copy != -1)) {
if ((m->m_flags & M_BCAST) || loop_copy) {
struct mbuf *n = m_copy(m, 0, (int)M_COPYALL);
OpenPOWER on IntegriCloud