From: lteo Date: Sat, 12 Jul 2014 19:04:29 +0000 (+0000) Subject: Protocol checksums have been recalculated on reinjection for a while X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b701d7088b83263019276606d36a2220e20c5a06;p=openbsd 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@ --- 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 @@ -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; diff --git a/sys/netinet6/ip6_divert.c b/sys/netinet6/ip6_divert.c index c7ab5f86e74..5efbbd71db6 100644 --- a/sys/netinet6/ip6_divert.c +++ b/sys/netinet6/ip6_divert.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_divert.c,v 1.25 2014/07/12 03:27:00 lteo Exp $ */ +/* $OpenBSD: ip6_divert.c,v 1.26 2014/07/12 19:04:29 lteo Exp $ */ /* * Copyright (c) 2009 Michele Marchetto @@ -233,9 +233,6 @@ divert6_packet(struct mbuf *m, int dir, u_int16_t divert_port) break; } } - /* force checksum calculation */ - if (dir == PF_OUT) - in6_proto_cksum_out(m, NULL); if (inp) { sa = inp->inp_socket;