summaryrefslogtreecommitdiff
path: root/sys/net/pfvar.h
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2010-09-21 03:42:18 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2010-09-21 03:42:18 +0000
commitdffc674616e5989cfa4c6f81ddbe553f839f6d34 (patch)
tree1d483ec4247344e03f7b613225b0a2bac0f3ad46 /sys/net/pfvar.h
parent03dfc3a036a08beae0013abc0920b3fbf39919ca (diff)
make pf_translate (void so far) return 1 if it actually changed something
and 0 if it didn't so we know wether we have to rewrite or not. ok ryan dlg and in just an hour from now on this might have reached cvs eventually from njetwork challenged j2k10 in japan
Diffstat (limited to 'sys/net/pfvar.h')
-rw-r--r--sys/net/pfvar.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index 3b3a2ab4f5e..12f42f738ca 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfvar.h,v 1.312 2010/09/21 02:51:35 henning Exp $ */
+/* $OpenBSD: pfvar.h,v 1.313 2010/09/21 03:42:17 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1796,6 +1796,8 @@ 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);
+int pf_translate(struct pf_pdesc *, struct pf_addr *, u_int16_t,
+ struct pf_addr *, u_int16_t, u_int16_t, int, struct mbuf *);
void pfr_initialize(void);
int pfr_match_addr(struct pfr_ktable *, struct pf_addr *, sa_family_t);