Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Fix typo in HW checksum code -- check for TCP & U...



details:   https://anonhg.NetBSD.org/src/rev/ca8d3256451c
branches:  trunk
changeset: 579555:ca8d3256451c
user:      rafal <rafal%NetBSD.org@localhost>
date:      Thu Mar 17 15:51:28 2005 +0000

description:
Fix typo in HW checksum code -- check for TCP & UDP HW checksumming being
enabled rather than TCP twice.

diffstat:

 sys/dev/ic/hme.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b13838827ace -r ca8d3256451c sys/dev/ic/hme.c
--- a/sys/dev/ic/hme.c  Thu Mar 17 15:32:38 2005 +0000
+++ b/sys/dev/ic/hme.c  Thu Mar 17 15:51:28 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hme.c,v 1.49 2005/03/05 18:36:23 heas Exp $    */
+/*     $NetBSD: hme.c,v 1.50 2005/03/17 15:51:28 rafal Exp $   */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hme.c,v 1.49 2005/03/05 18:36:23 heas Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hme.c,v 1.50 2005/03/17 15:51:28 rafal Exp $");
 
 /* #define HMEDEBUG */
 
@@ -755,7 +755,7 @@
 
 #ifdef INET
        /* hardware checksum */
-       if (ifp->if_csum_flags_rx & (M_CSUM_TCPv4 | M_CSUM_TCPv4)) {
+       if (ifp->if_csum_flags_rx & (M_CSUM_TCPv4 | M_CSUM_UDPv4)) {
                struct ether_header *eh;
                struct ip *ip;
                struct udphdr *uh;



Home | Main Index | Thread Index | Old Index