Source-Changes-HG archive

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

[src/netbsd-2-0]: src/sys/net Pullup rev 1.26 (requested by bad in ticket #900)



details:   https://anonhg.NetBSD.org/src/rev/ff731e053f29
branches:  netbsd-2-0
changeset: 562773:ff731e053f29
user:      jmc <jmc%NetBSD.org@localhost>
date:      Fri Oct 08 03:11:13 2004 +0000

description:
Pullup rev 1.26 (requested by bad in ticket #900)

Interfaces that do checksum offloading indicate the checksum status of
received packets in csum_flags in the packet header.  Packets that are
forwarded over the bridge need to have csum_flags cleared before being
put on the output queue.  Do so in bridge_enqueue(). PR#27007 PR#21831

diffstat:

 sys/net/if_bridge.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r b3ae34894d22 -r ff731e053f29 sys/net/if_bridge.c
--- a/sys/net/if_bridge.c       Fri Oct 08 03:10:04 2004 +0000
+++ b/sys/net/if_bridge.c       Fri Oct 08 03:11:13 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bridge.c,v 1.22 2004/01/31 20:11:13 jdc Exp $       */
+/*     $NetBSD: if_bridge.c,v 1.22.2.1 2004/10/08 03:11:13 jmc Exp $   */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -80,7 +80,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.22 2004/01/31 20:11:13 jdc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.22.2.1 2004/10/08 03:11:13 jmc Exp $");
 
 #include "opt_bridge_ipf.h"
 #include "opt_inet.h"
@@ -1121,6 +1121,11 @@
        int len, error;
        short mflags;
 
+       /*
+        * Clear any in-bound checksum flags for this packet.
+        */
+       m->m_pkthdr.csum_flags = 0;
+
 #ifdef PFIL_HOOKS
        if (runfilt) {
                if (pfil_run_hooks(&sc->sc_if.if_pfil, &m,



Home | Main Index | Thread Index | Old Index