diff options
author | Cedric Berger <cedric@cvs.openbsd.org> | 2003-04-30 12:30:28 +0000 |
---|---|---|
committer | Cedric Berger <cedric@cvs.openbsd.org> | 2003-04-30 12:30:28 +0000 |
commit | ba4eec495765b9095d5d66d12e933cae99fbfba5 (patch) | |
tree | 8242fa1f0a74e8277324734a9b5d014dbf6d7771 /sys/net/pf_ioctl.c | |
parent | d08d75cff317e4ebbe3d8d3f9ebdd6daee64a27f (diff) |
Allow tables to be loaded into anchors.
Most pfctl table commands (excluding 'show' and 'flush') support the "-a"
modifier.
ok dhartmei@
Diffstat (limited to 'sys/net/pf_ioctl.c')
-rw-r--r-- | sys/net/pf_ioctl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c index 1d7f7a3045b..7499129897d 100644 --- a/sys/net/pf_ioctl.c +++ b/sys/net/pf_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_ioctl.c,v 1.59 2003/04/27 16:02:07 cedric Exp $ */ +/* $OpenBSD: pf_ioctl.c,v 1.60 2003/04/30 12:30:27 cedric Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -609,9 +609,9 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) error = EINVAL; if (pf_dynaddr_setup(&rule->dst.addr, rule->af)) error = EINVAL; - if (pf_tbladdr_setup(&rule->src.addr)) + if (pf_tbladdr_setup(ruleset, &rule->src.addr)) error = EINVAL; - if (pf_tbladdr_setup(&rule->dst.addr)) + if (pf_tbladdr_setup(ruleset, &rule->dst.addr)) error = EINVAL; pf_mv_pool(&pf_pabuf, &rule->rpool.list); @@ -848,9 +848,9 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) error = EINVAL; if (pf_dynaddr_setup(&newrule->dst.addr, newrule->af)) error = EINVAL; - if (pf_tbladdr_setup(&newrule->src.addr)) + if (pf_tbladdr_setup(ruleset, &newrule->src.addr)) error = EINVAL; - if (pf_tbladdr_setup(&newrule->dst.addr)) + if (pf_tbladdr_setup(ruleset, &newrule->dst.addr)) error = EINVAL; pf_mv_pool(&pf_pabuf, &newrule->rpool.list); |