]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
SOURCE should really refer to rta->source, not rta->gw.
authorMartin Mares <mj@ucw.cz>
Sat, 1 Apr 2000 09:15:10 +0000 (09:15 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 1 Apr 2000 09:15:10 +0000 (09:15 +0000)
Please check that all rta attributes are available, I guess that at
least rta->dest is missing.

filter/config.Y

index 39085792a977543fa24987b53b3648ee11b2b320..40034602f31f559503b3cf8e8ba4166e89c5b834 100644 (file)
@@ -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'); }