diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2013-10-20 13:44:25 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2013-10-20 13:44:25 +0000 |
commit | 3667e50e06717c68ded676c74fb083e398bf4b1b (patch) | |
tree | 52a6b9eec95b2ea1a0b509eb0445036a9af786ae /sys/netinet | |
parent | 198a6c6f0fe2a01f7e614896d775798613f98fdc (diff) |
no need to make the icmp cksum "offloading" case special insofar that the
cksum needs to be 0'd before, pf does that now (just like in the tcp/udp
case) and nothing else uses the icmp "offloading" yet.
with & ok bluhm
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_output.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 52f99148f70..0da7d4a9cf2 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_output.c,v 1.248 2013/10/19 10:38:54 henning Exp $ */ +/* $OpenBSD: ip_output.c,v 1.249 2013/10/20 13:44:23 henning Exp $ */ /* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */ /* @@ -2121,7 +2121,6 @@ in_proto_cksum_out(struct mbuf *m, struct ifnet *ifp) hlen = ip->ip_hl << 2; icp = (struct icmp *)(mtod(m, caddr_t) + hlen); - icp->icmp_cksum = 0; icp->icmp_cksum = in4_cksum(m, 0, hlen, ntohs(ip->ip_len) - hlen); m->m_pkthdr.csum_flags &= ~M_ICMP_CSUM_OUT; /* Clear */ |