artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
805b8a6
)
Put pf_state_import() under NPFSYNC>0 to fix build without pfsync
author
kn
<kn@openbsd.org>
Sat, 12 Nov 2022 02:48:14 +0000
(
02:48
+0000)
committer
kn
<kn@openbsd.org>
Sat, 12 Nov 2022 02:48:14 +0000
(
02:48
+0000)
sys/net/pf.c
patch
|
blob
|
history
diff --git
a/sys/net/pf.c
b/sys/net/pf.c
index
43b40a3
..
4203911
100644
(file)
--- a/
sys/net/pf.c
+++ b/
sys/net/pf.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: pf.c,v 1.115
2 2022/11/11 16:12:08 dlg
Exp $ */
+/* $OpenBSD: pf.c,v 1.115
3 2022/11/12 02:48:14 kn
Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@
-1302,6
+1302,7
@@
pf_state_alloc_scrub_memory(const struct pfsync_state_peer *s,
return (0);
}
+#if NPFSYNC > 0
int
pf_state_import(const struct pfsync_state *sp, int flags)
{
@@
-1511,6
+1512,7
@@
pf_state_import(const struct pfsync_state *sp, int flags)
}
return (error);
}
+#endif /* NPFSYNC > 0 */
/* END state table stuff */