Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/net Pull up revision 1.83 (via patch, requested by ...



details:   https://anonhg.NetBSD.org/src/rev/6b99fd62f512
branches:  netbsd-1-5
changeset: 491858:6b99fd62f512
user:      he <he%NetBSD.org@localhost>
date:      Thu Jun 07 17:00:32 2001 +0000

description:
Pull up revision 1.83 (via patch, requested by thorpej):
  Consider the configured MTU of the interface when determining
  if a packet is too large.

diffstat:

 sys/net/if_ethersubr.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r e693c6802b6c -r 6b99fd62f512 sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c    Thu Jun 07 17:00:01 2001 +0000
+++ b/sys/net/if_ethersubr.c    Thu Jun 07 17:00:32 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ethersubr.c,v 1.58.2.1 2000/12/31 20:14:28 jhawk Exp $      */
+/*     $NetBSD: if_ethersubr.c,v 1.58.2.2 2001/06/07 17:00:32 he Exp $ */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -517,8 +517,10 @@
        /*
         * Determine if the packet is within its size limits.
         */
-       if (m->m_pkthdr.len > ETHER_MAX_FRAME(etype, m->m_flags & M_HASFCS)) {
-               printf("%s: discarding oversize frame\n", ifp->if_xname);
+       if (m->m_pkthdr.len > 
+           ETHER_MAX_FRAME(ifp, etype, m->m_flags & M_HASFCS)) {
+               printf("%s: discarding oversize frame (len=%d)\n", 
+                   ifp->if_xname, m->m_pkthdr.len);
                m_freem(m);
                return;
        }



Home | Main Index | Thread Index | Old Index