From ba4eec495765b9095d5d66d12e933cae99fbfba5 Mon Sep 17 00:00:00 2001 From: Cedric Berger Date: Wed, 30 Apr 2003 12:30:28 +0000 Subject: Allow tables to be loaded into anchors. Most pfctl table commands (excluding 'show' and 'flush') support the "-a" modifier. ok dhartmei@ --- sys/net/pf_ioctl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/net/pf_ioctl.c') 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); -- cgit v1.2.3