-/* $OpenBSD: pf.c,v 1.615 2008/08/22 00:35:08 bluhm Exp $ */
+/* $OpenBSD: pf.c,v 1.616 2008/08/26 12:17:10 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
else
return (0);
}
+
+/*
+ * must be called whenever any addressing information such as
+ * address, port, protocol has changed
+ */
+void
+pf_pkt_addr_changed(struct mbuf *m)
+{
+ m->m_pkthdr.pf.statekey = NULL;
+}
-/* $OpenBSD: pfvar.h,v 1.276 2008/07/03 15:46:23 henning Exp $ */
+/* $OpenBSD: pfvar.h,v 1.277 2008/08/26 12:17:10 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
int pf_rtlabel_match(struct pf_addr *, sa_family_t, struct pf_addr_wrap *);
int pf_socket_lookup(int, struct pf_pdesc *);
struct pf_state_key *pf_alloc_state_key(int);
+void pf_pkt_addr_changed(struct mbuf *);
int pf_state_key_attach(struct pf_state_key *, struct pf_state *, int);
void pfr_initialize(void);
int pfr_match_addr(struct pfr_ktable *, struct pf_addr *, sa_family_t);