diff options
author | Marco Pfatschbacher <mpf@cvs.openbsd.org> | 2007-07-04 08:14:15 +0000 |
---|---|---|
committer | Marco Pfatschbacher <mpf@cvs.openbsd.org> | 2007-07-04 08:14:15 +0000 |
commit | d6ae6b23e91ebc137c717bd1595f594d3ab91317 (patch) | |
tree | b560972d52c3a7c5ea6bbe0de96b38ab67ce5484 | |
parent | b6abc47c44da90c5f29ca01205dbbfecb2f8837c (diff) |
No m_copyback for ICMP and "other" protocols on rdr/binat.
Fixes ICMP packet payload corruption on rdr.
OK henning@, markus@
-rw-r--r-- | sys/net/pf.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index fe745703f34..8265164fda7 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.548 2007/06/25 13:57:18 henning Exp $ */ +/* $OpenBSD: pf.c,v 1.549 2007/07/04 08:14:14 mpf Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -2895,7 +2895,6 @@ pf_test_rule(struct pf_rule **rm, struct pf_state **sm, int direction, if (pd->af != AF_INET) break; sport = dport = pd->hdr.icmp->icmp_id; - hdrlen = sizeof(*pd->hdr.icmp); icmptype = pd->hdr.icmp->icmp_type; icmpcode = pd->hdr.icmp->icmp_code; @@ -3035,7 +3034,6 @@ pf_test_rule(struct pf_rule **rm, struct pf_state **sm, int direction, break; } - rewrite++; if (nr->natpass) r = NULL; pd->nat_rule = nr; |