summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2002-06-25 08:14:38 +0000
committerhenning <henning@openbsd.org>2002-06-25 08:14:38 +0000
commit2cc5ecb9ba54ec4a55321f5ae7eab018a177e06e (patch)
tree453687d79a390a806ef999c1792bbcdeb6bfd8c5
parentmove pfctl options -t, -m, -O and -l to pf.conf. These are set using the (diff)
downloadwireguard-openbsd-2cc5ecb9ba54ec4a55321f5ae7eab018a177e06e.tar.xz
wireguard-openbsd-2cc5ecb9ba54ec4a55321f5ae7eab018a177e06e.zip
hooks for options.
we don't support setting pf options via authpf, but need the hooks here, too. ok dhartmei@, kjell@
-rw-r--r--usr.sbin/authpf/authpf.c33
1 files changed, 31 insertions, 2 deletions
diff --git a/usr.sbin/authpf/authpf.c b/usr.sbin/authpf/authpf.c
index d4fce200578..c6975fc02aa 100644
--- a/usr.sbin/authpf/authpf.c
+++ b/usr.sbin/authpf/authpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authpf.c,v 1.22 2002/06/12 20:09:43 vincent Exp $ */
+/* $OpenBSD: authpf.c,v 1.23 2002/06/25 08:14:38 henning Exp $ */
/*
* Copyright (C) 1998 - 2002 Bob Beck (beck@openbsd.org).
@@ -802,5 +802,34 @@ pfctl_add_rdr(struct pfctl *pf, struct pf_rdr *r)
int
pfctl_add_binat(struct pfctl *pf, struct pf_binat *b)
{
- return 0;
+ return (0);
+}
+
+int
+pfctl_set_timeout(struct pfctl *pf, const char *opt, int seconds)
+{
+ fprintf(stderr, "set timeout not supported in authpf\n");
+ return (1);
+}
+
+int
+pfctl_set_optimization(struct pfctl *pf, const char *opt)
+{
+ fprintf(stderr, "set optimization not supported in authpf\n");
+ return (1);
}
+
+int
+pfctl_set_limit(struct pfctl *pf, const char *opt, unsigned int limit)
+{
+ fprintf(stderr, "set limit not supported in authpf\n");
+ return (1);
+}
+
+int
+pfctl_set_logif(struct pfctl *pf, char *ifname)
+{
+ fprintf(stderr, "set loginterface not supported in authpf\n");
+ return (1);
+}
+