summaryrefslogtreecommitdiff
path: root/sys/net/if_pfsync.c
diff options
context:
space:
mode:
authorChristopher Pascoe <pascoe@cvs.openbsd.org>2005-08-18 10:28:15 +0000
committerChristopher Pascoe <pascoe@cvs.openbsd.org>2005-08-18 10:28:15 +0000
commitab61a165d31f17b7e1742087975b75edccadb893 (patch)
tree4cbea0604fe2b419190384544925b39d99541ac0 /sys/net/if_pfsync.c
parent7c1d8d76dfb33cd562e11ab334d88e718f89b3ac (diff)
Rearrange pf_state and pfi_kif so that the parts of the structure needed
to search for a particular entry in the RB trees are at the start of the structure. This permits us to place a much smaller structure on the stack in the interrupt paths that match packets against state entries. ok mcbride
Diffstat (limited to 'sys/net/if_pfsync.c')
-rw-r--r--sys/net/if_pfsync.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c
index 5e6712f1cce..5814a17148d 100644
--- a/sys/net/if_pfsync.c
+++ b/sys/net/if_pfsync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pfsync.c,v 1.53 2005/08/16 11:22:43 pascoe Exp $ */
+/* $OpenBSD: if_pfsync.c,v 1.54 2005/08/18 10:28:13 pascoe Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -277,7 +277,8 @@ pfsync_input(struct mbuf *m, ...)
struct ip *ip = mtod(m, struct ip *);
struct pfsync_header *ph;
struct pfsync_softc *sc = &pfsyncif;
- struct pf_state *st, key;
+ struct pf_state *st;
+ struct pf_state_cmp key;
struct pfsync_state *sp;
struct pfsync_state_upd *up;
struct pfsync_state_del *dp;