summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2007-05-26 20:12:03 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2007-05-26 20:12:03 +0000
commitdf62462b815791428e5b6fe450ccd67982196edc (patch)
tree4bc5e7d573effd496e98a7dde5c83836fd285a75 /sys
parentef6d0dbed17920671017419c1c027ba9fa84ece0 (diff)
add comments indicating why we do m = *m0; again after pf_normalize, ryan ok
Diffstat (limited to 'sys')
-rw-r--r--sys/net/pf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index b57523c639d..52bd96d4067 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.529 2007/05/08 23:36:25 mcbride Exp $ */
+/* $OpenBSD: pf.c,v 1.530 2007/05/26 20:12:02 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -5962,7 +5962,7 @@ pf_test(int dir, struct ifnet *ifp, struct mbuf **m0,
action = PF_DROP;
goto done;
}
- m = *m0;
+ m = *m0; /* pf_normalize messes with m0 */
h = mtod(m, struct ip *);
off = h->ip_hl << 2;
@@ -6291,7 +6291,7 @@ pf_test6(int dir, struct ifnet *ifp, struct mbuf **m0,
action = PF_DROP;
goto done;
}
- m = *m0;
+ m = *m0; /* pf_normalize messes with m0 */
h = mtod(m, struct ip6_hdr *);
#if 1