On Wed, Feb 19, 2003 at 06:49:43PM -0500, Jason Dixon wrote:
> On Wed, 2003-02-19 at 18:38, Henning Brauer wrote:
> > > $int_if:network expands properly, but dynamic () does not work (again,
> > > passes test mode ok, but fails with a reload).
> > WHAT does not work?
> > ($interface:network) is not supposed to work.
> Sorry, my mistake. I expected parse mode to catch it. :(
yeah, it should.
Index: parse.y
===================================================================
RCS file: /cvs/src/sbin/pfctl/parse.y,v
retrieving revision 1.325
diff -u -r1.325 parse.y
--- parse.y 19 Feb 2003 22:00:20 -0000 1.325
+++ parse.y 20 Feb 2003 00:07:00 -0000
@@ -1588,6 +1588,10 @@
;
address : '(' STRING ')' {
+ if (ifa_exists($2) == NULL) {
+ yyerror("interface %s does not exist", $2);
+ YYERROR;
+ }
$$ = calloc(1, sizeof(struct node_host));
if ($$ == NULL)
err(1, "address: calloc");
--
Henning Brauer, BS Web Services, http://bsws.de
[EMAIL PROTECTED] - [EMAIL PROTECTED]
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)