diff options
author | 2002-06-25 08:14:38 +0000 | |
---|---|---|
committer | 2002-06-25 08:14:38 +0000 | |
commit | 2cc5ecb9ba54ec4a55321f5ae7eab018a177e06e (patch) | |
tree | 453687d79a390a806ef999c1792bbcdeb6bfd8c5 | |
parent | move pfctl options -t, -m, -O and -l to pf.conf. These are set using the (diff) | |
download | wireguard-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.c | 33 |
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); +} + |