From dfbaaaef48572dc7553be6607d92f8acc2e38196 Mon Sep 17 00:00:00 2001 From: bouyer Date: Sat, 5 Nov 2005 16:01:52 +0000 Subject: [PATCH] ETHERCAP_VLAN_MTU is a flag for ec_capabilities, the size of the 802.1q encaptulation header is ETHER_VLAN_ENCAP_LEN. Pointed out by der Mouse on tech-kern. --- sys/dev/sbus/be.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/sbus/be.c b/sys/dev/sbus/be.c index 08a977a9be65..0eb086b9dc1d 100644 --- a/sys/dev/sbus/be.c +++ b/sys/dev/sbus/be.c @@ -1,4 +1,4 @@ -/* $NetBSD: be.c,v 1.45 2005/02/04 02:10:47 perry Exp $ */ +/* $NetBSD: be.c,v 1.46 2005/11/05 16:01:52 bouyer Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -64,7 +64,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: be.c,v 1.45 2005/02/04 02:10:47 perry Exp $"); +__KERNEL_RCSID(0, "$NetBSD: be.c,v 1.46 2005/11/05 16:01:52 bouyer Exp $"); #include "opt_ddb.h" #include "opt_inet.h" @@ -588,7 +588,7 @@ be_read(sc, idx, len) struct mbuf *m; if (len <= sizeof(struct ether_header) || - len > ETHER_MAX_LEN + ETHERCAP_VLAN_MTU) { + len > ETHER_MAX_LEN + ETHER_VLAN_ENCAP_LEN) { #ifdef BEDEBUG if (sc->sc_debug) printf("%s: invalid packet size %d; dropping\n",