diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2002-06-25 08:14:39 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2002-06-25 08:14:39 +0000 |
commit | bc64cbe4bc38efeb8d0006b56f93c1803ca806a2 (patch) | |
tree | a0f039bed1320066a7f5d6ac800ac5b174e9767e /usr.sbin/authpf/authpf.c | |
parent | bc5e45eaa6b5ab08915bf407374757eca204ffbc (diff) |
hooks for options.
we don't support setting pf options via authpf, but need the hooks here, too.
ok dhartmei@, kjell@
Diffstat (limited to 'usr.sbin/authpf/authpf.c')
-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); +} + |