summaryrefslogtreecommitdiff
path: root/sys/net/pf.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2013-10-19 10:47:54 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2013-10-19 10:47:54 +0000
commit38214f8208d6171da2148291d6da0e6ed1eb90bb (patch)
treef67096768b6d43cc5cb706755babecb0294675a5 /sys/net/pf.c
parent5020dd8837f56b45edd717dde5f5ff870fc14dcf (diff)
pf_cksum doesn't need to compute the pseudo hdr cksum any more.
ok lteo florian
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r--sys/net/pf.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index 15d53bfcbb5..1322ce6bc62 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.844 2013/10/17 16:27:41 bluhm Exp $ */
+/* $OpenBSD: pf.c,v 1.845 2013/10/19 10:47:53 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -6742,20 +6742,10 @@ pf_cksum(struct pf_pdesc *pd, struct mbuf *m)
switch (pd->proto) {
case IPPROTO_TCP:
pd->hdr.tcp->th_sum = 0;
- if (pd->af == AF_INET) {
- pd->hdr.tcp->th_sum = in_cksum_phdr(pd->src->v4.s_addr,
- pd->dst->v4.s_addr, htons(pd->tot_len -
- pd->off + IPPROTO_TCP));
- }
m->m_pkthdr.csum_flags |= M_TCP_CSUM_OUT;
break;
case IPPROTO_UDP:
pd->hdr.udp->uh_sum = 0;
- if (pd->af == AF_INET) {
- pd->hdr.udp->uh_sum = in_cksum_phdr(pd->src->v4.s_addr,
- pd->dst->v4.s_addr, htons(pd->tot_len -
- pd->off + IPPROTO_UDP));
- }
m->m_pkthdr.csum_flags |= M_UDP_CSUM_OUT;
break;
case IPPROTO_ICMP: