summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-01 09:15:10 +0000
committerMartin Mares <mj@ucw.cz>2000-04-01 09:15:10 +0000
commitb157361533412de2123787a412e6e463c0b2f13a (patch)
tree9157f4c9f2e14da4fa93bec3bd2f1274888f5cb0
parent499cb346f6fb29f9157e12942484c8b4362597c3 (diff)
SOURCE should really refer to rta->source, not rta->gw.
Please check that all rta attributes are available, I guess that at least rta->dest is missing.
-rw-r--r--filter/config.Y2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/config.Y b/filter/config.Y
index 39085792..40034602 100644
--- a/filter/config.Y
+++ b/filter/config.Y
@@ -393,7 +393,7 @@ term:
| rtadot GW { $$ = f_new_inst(); $$->code = 'a'; $$->aux = T_IP; $$->a2.i = OFFSETOF(struct rta, gw); }
| rtadot NET { $$ = f_new_inst(); $$->code = 'a'; $$->aux = T_PREFIX; $$->a2.i = 0x12345678; }
- | rtadot SOURCE { $$ = f_new_inst(); $$->code = 'a'; $$->aux = T_ENUM_RTS; $$->a2.i = OFFSETOF(struct rta, gw); }
+ | rtadot SOURCE { $$ = f_new_inst(); $$->code = 'a'; $$->aux = T_ENUM_RTS; $$->a2.i = OFFSETOF(struct rta, source); }
| rtadot dynamic_attr { $$ = $2; $$->code = P('e','a'); }