summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2012-07-13 16:27:31 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2012-07-13 16:27:31 +0000
commit1a986c72de55d9bb1956f50a96a81fa09ab54ebb (patch)
tree5afb44f8e5379e2d0019d1a92e5c6203f1503e73 /sys
parent1aab69ba3e88475f85ea279872721295dd4511d7 (diff)
3 line diff to fix divert using connections from local system.
OK henning@
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_divert.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c
index 1d1e59cfaaf..9f0227a5ef5 100644
--- a/sys/netinet/ip_divert.c
+++ b/sys/netinet/ip_divert.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_divert.c,v 1.8 2010/09/08 08:34:42 claudio Exp $ */
+/* $OpenBSD: ip_divert.c,v 1.9 2012/07/13 16:27:30 claudio Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -173,6 +173,9 @@ divert_packet(struct mbuf *m, int dir)
break;
}
}
+ /* force checksum calculation */
+ if (dir == PF_OUT)
+ in_proto_cksum_out(m, NULL);
CIRCLEQ_FOREACH(inp, &divbtable.inpt_queue, inp_queue) {
if (inp->inp_lport != pd->port)