summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1999-11-25 14:42:49 +0100
committerPavel Machek <pavel@ucw.cz>1999-11-25 14:42:49 +0100
commit4aa885a53c479c774aab5befe55a1714b89cdc9e (patch)
treecddad84a7aa1344342e113600d6ae23cb9423dea
parent7e61cac325aae2628d668673f60853608e072e66 (diff)
downloadbird-4aa885a53c479c774aab5befe55a1714b89cdc9e.tar
bird-4aa885a53c479c774aab5befe55a1714b89cdc9e.zip
Filters: fix rta access to use ->aux field.
-rw-r--r--filter/config.Y8
-rw-r--r--filter/filter.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/filter/config.Y b/filter/config.Y
index 3a176df..7b61baa 100644
--- a/filter/config.Y
+++ b/filter/config.Y
@@ -276,11 +276,11 @@ term:
}
}
- | RTA '.' FROM { $$ = f_new_inst(); $$->code = 'a'; $$->a1.i = T_IP; $$->a2.i = OFFSETOF(struct rta, from); }
+ | RTA '.' FROM { $$ = f_new_inst(); $$->code = 'a'; $$->aux = T_IP; $$->a2.i = OFFSETOF(struct rta, from); }
- | RTA '.' GW { $$ = f_new_inst(); $$->code = 'a'; $$->a1.i = T_IP; $$->a2.i = OFFSETOF(struct rta, gw); }
- | RTA '.' NET { $$ = f_new_inst(); $$->code = 'a'; $$->a1.i = T_PREFIX; $$->a2.i = 0x12345678; }
- | RTA '.' SOURCE { $$ = f_new_inst(); $$->code = 'a'; $$->a1.i = T_ENUM_RTS; $$->a2.i = OFFSETOF(struct rta, gw); }
+ | RTA '.' GW { $$ = f_new_inst(); $$->code = 'a'; $$->aux = T_IP; $$->a2.i = OFFSETOF(struct rta, gw); }
+ | RTA '.' NET { $$ = f_new_inst(); $$->code = 'a'; $$->aux = T_PREFIX; $$->a2.i = 0x12345678; }
+ | RTA '.' SOURCE { $$ = f_new_inst(); $$->code = 'a'; $$->aux = T_ENUM_RTS; $$->a2.i = OFFSETOF(struct rta, gw); }
| RTA '.' any_dynamic { $$ = $3; $$->code = 'ea'; }
diff --git a/filter/filter.c b/filter/filter.c
index 3358741..9c2bfe8 100644
--- a/filter/filter.c
+++ b/filter/filter.c
@@ -313,7 +313,7 @@ interpret(struct f_inst *what)
break;
}
default:
- bug( "Invalid type for rta access" );
+ bug( "Invalid type for rta access (%x)\n" );
}
}
break;