summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorLawrence Teo <lteo@cvs.openbsd.org>2014-07-12 19:04:30 +0000
committerLawrence Teo <lteo@cvs.openbsd.org>2014-07-12 19:04:30 +0000
commit33a56d0b7461e6f5d405af424034e585fed6cdf1 (patch)
treed9a08d145f3d03875672ae89d76431b3af8f4150 /sys/netinet
parent6a095d5cb1bc22d35425aac5a4666242140bdb87 (diff)
Protocol checksums have been recalculated on reinjection for a while
now, so there is no need to calculate them before sending them to userspace. ok henning@
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_divert.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c
index de0a4a4b217..d87dcd11fa6 100644
--- a/sys/netinet/ip_divert.c
+++ b/sys/netinet/ip_divert.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_divert.c,v 1.24 2014/07/12 03:27:00 lteo Exp $ */
+/* $OpenBSD: ip_divert.c,v 1.25 2014/07/12 19:04:29 lteo Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -227,9 +227,6 @@ divert_packet(struct mbuf *m, int dir, u_int16_t divert_port)
break;
}
}
- /* force checksum calculation */
- if (dir == PF_OUT)
- in_proto_cksum_out(m, NULL);
if (inp) {
sa = inp->inp_socket;