diff options
| author | rafal <rafal@NetBSD.org> | 2005-03-17 15:51:28 +0000 |
|---|---|---|
| committer | rafal <rafal@NetBSD.org> | 2005-03-17 15:51:28 +0000 |
| commit | 08bbc8e180963bd905cc9cd3b6eb9fdf65a25c7b (patch) | |
| tree | 8906a1f969b60ad6455ba5f8ff41fedff3200ef9 /sys/dev/ic | |
| parent | 9af95b6ee2f8ad886708974f04115603c515bbb7 (diff) | |
Fix typo in HW checksum code -- check for TCP & UDP HW checksumming being
enabled rather than TCP twice.
Diffstat (limited to 'sys/dev/ic')
| -rw-r--r-- | sys/dev/ic/hme.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/hme.c b/sys/dev/ic/hme.c index bebacb58388..7a611013b30 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 <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 @@ 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; |
