aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2015-03-17 13:34:25 +0100
committerWilly Tarreau <w@1wt.eu>2016-09-21 10:38:29 +0200
commit1d7b26b7b5c4dce009b5ba84a404a0edf6661bb0 (patch)
tree654914ac8be4e6cf54de3c639e8b8dcd6dc43f9c
parentf282a124375580ff8b1bc2aeb96fb6162bf8fd9a (diff)
downloadndiv-v5-3.14-neta-ixgbe-e1000e-e1000-slhttpd.tar.gz
slhttpd: the L4 offset must be relative to the L2 header, not L3v5-3.14-neta-ixgbe-e1000e-e1000-slhttpd
So we need to pass 34 and not 20 here for the checksumm computation.
-rw-r--r--drivers/staging/slhttpd/slhttpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/slhttpd/slhttpd.c b/drivers/staging/slhttpd/slhttpd.c
index adb24d1ae21e33..b440ce219e9d8b 100644
--- a/drivers/staging/slhttpd/slhttpd.c
+++ b/drivers/staging/slhttpd/slhttpd.c
@@ -623,7 +623,7 @@ static u32 handle_rx(struct ndiv *ndiv, u8 *l3, u32 flags_l3len, u32 vlan_proto,
send_ip:
*(uint16_t *)(oih + 2) = htons(otail - oih); /* IP+TCP real len */
- return NDIV_RX_R_F_DROP | (20 << NDIV_RX_R_L4OFFSET_SHIFT) | NDIV_RX_R_F_IPCSUM | NDIV_RX_R_F_TCPCSUM | (otail - obuf);
+ return NDIV_RX_R_F_DROP | (34 << NDIV_RX_R_L4OFFSET_SHIFT) | NDIV_RX_R_F_IPCSUM | NDIV_RX_R_F_TCPCSUM | (otail - obuf);
drop:
return NDIV_RX_R_F_DROP;