From 08bbc8e180963bd905cc9cd3b6eb9fdf65a25c7b Mon Sep 17 00:00:00 2001 From: rafal Date: Thu, 17 Mar 2005 15:51:28 +0000 Subject: [PATCH] Fix typo in HW checksum code -- check for TCP & UDP HW checksumming being enabled rather than TCP twice. --- sys/dev/ic/hme.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/ic/hme.c b/sys/dev/ic/hme.c index bebacb583889..7a611013b301 100644 --- a/sys/dev/ic/hme.c +++ b/sys/dev/ic/hme.c @@ -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 -__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 @@ hme_get(sc, ri, flags) #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;