summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2002-02-14 23:53:33 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2002-02-14 23:53:33 +0000
commit0f740ba89739a9b9f9c46421021580f9b51a4976 (patch)
tree7ba8b0181efd84f8570c0892ea29dbd34ea1e97b /sys
parent66749939441629fabaae01d2514da1fb4c3b2111 (diff)
Reorder struct pf_pdesc members, saves 8 bytes.
Diffstat (limited to 'sys')
-rw-r--r--sys/net/pfvar.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index 0ae6b13f794..2e76d0792bd 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfvar.h,v 1.62 2002/02/14 15:32:11 dhartmei Exp $ */
+/* $OpenBSD: pfvar.h,v 1.63 2002/02/14 23:53:32 dhartmei Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -340,16 +340,7 @@ struct pf_tree_key {
TAILQ_HEAD(pf_rulequeue, pf_rule);
struct pf_pdesc {
- struct pf_addr *src;
- struct pf_addr *dst;
- u_int16_t *ip_sum;
u_int64_t tot_len; /* Make Mickey money */
- u_int32_t p_len; /* total length of payload */
-
- u_int16_t flags; /* Let SCRUB trigger behavior in
- * state code. Easier than tags */
- u_int8_t af;
- u_int8_t proto;
union {
struct tcphdr *tcp;
struct udphdr *udp;
@@ -359,6 +350,14 @@ struct pf_pdesc {
#endif /* INET6 */
void *any;
} hdr;
+ struct pf_addr *src;
+ struct pf_addr *dst;
+ u_int16_t *ip_sum;
+ u_int32_t p_len; /* total length of payload */
+ u_int16_t flags; /* Let SCRUB trigger behavior in
+ * state code. Easier than tags */
+ u_int8_t af;
+ u_int8_t proto;
};
/* flags for RDR options */