From 60de3356ab9b1996a84e3ba2865176a078b6d0ca Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Tue, 16 May 2000 14:24:33 +0000 Subject: Resolved shift/reduce conflict --- filter/config.Y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'filter/config.Y') diff --git a/filter/config.Y b/filter/config.Y index a99e4a5..accf318 100644 --- a/filter/config.Y +++ b/filter/config.Y @@ -211,7 +211,7 @@ pair: * Complex types, their bison value is struct f_val */ fprefix_s: - IPA '/' NUM { + IPA '/' NUM %prec '/' { if (!ip_is_prefix($1, $3)) cf_error("Invalid network prefix: %I/%d", $1, $3); $$.type = T_PREFIX; $$.val.px.ip = $1; $$.val.px.len = $3; } @@ -225,7 +225,7 @@ fprefix: ; fipa: - IPA { $$.type = T_IP; $$.val.px.ip = $1; } + IPA %prec PREFIX_DUMMY { $$.type = T_IP; $$.val.px.ip = $1; } ; set_atom: -- cgit v1.2.3