diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2022-11-06 18:05:06 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2022-11-06 18:05:06 +0000 |
commit | 3d8261b866f3e5fef9e37fa7abf7f5c7e48390d1 (patch) | |
tree | 899bba216632a64a2fb5c74f4f9631017a8c71ad /sys/net/pfvar.h | |
parent | 7e0095a8f15cb45abb3ede07ad1467a0dc810502 (diff) |
move pfsync_state_import in if_pfsync.c to pf_state_import in pf.c
this is straightening the deck chairs. the state import and export
code are used by both the pf ioctls and pfsync, but the export code
is in pf.c and the import code is in if_pfsync. if pfsync was
disabled then the ioctl stuff wouldnt link.
moving the import code to pf.c makes it more symmetrical(?) and
robust.
tweaks and ok from kn@ sashan@
Diffstat (limited to 'sys/net/pfvar.h')
-rw-r--r-- | sys/net/pfvar.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index 8339863a94a..8d972897bcb 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pfvar.h,v 1.511 2022/10/10 16:43:12 bket Exp $ */ +/* $OpenBSD: pfvar.h,v 1.512 2022/11/06 18:05:05 dlg Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1741,6 +1741,11 @@ extern struct pf_state *pf_find_state_all(struct pf_state_key_cmp *, u_int, int *); extern void pf_state_export(struct pfsync_state *, struct pf_state *); +int pf_state_import(const struct pfsync_state *, + int); +int pf_state_alloc_scrub_memory( + const struct pfsync_state_peer *, + struct pf_state_peer *); extern void pf_print_state(struct pf_state *); extern void pf_print_flags(u_int8_t); extern void pf_addrcpy(struct pf_addr *, struct pf_addr *, @@ -1791,6 +1796,7 @@ int pf_normalize_ip6(struct pf_pdesc *, u_short *); int pf_normalize_tcp(struct pf_pdesc *); void pf_normalize_tcp_cleanup(struct pf_state *); int pf_normalize_tcp_init(struct pf_pdesc *, struct pf_state_peer *); +int pf_normalize_tcp_alloc(struct pf_state_peer *); int pf_normalize_tcp_stateful(struct pf_pdesc *, u_short *, struct pf_state *, struct pf_state_peer *, struct pf_state_peer *, int *); |