summaryrefslogtreecommitdiff
path: root/net/ntop/patches/patch-pbuf.c
blob: 72b14d25dd0eed96f73e888e2d803e86204e13dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-pbuf.c,v 1.1 2011/02/11 11:12:15 adam Exp $

Do not discard packets with bad checksum.
Bad checksum may occur when local interface has hardware-assisted checksumming.

--- pbuf.c.orig	2011-02-11 10:00:09.000000000 +0000
+++ pbuf.c
@@ -1175,7 +1175,6 @@ static void processIpPkt(const u_char *b
        && (in_cksum((const u_short *)bp, hlen, 0) != 0)
        ) {
       incrementTrafficCounter(&myGlobals.device[actualDeviceId].rcvdPktStats.badChecksum, 1);
-      return;
     }
 
   /*