0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Added type parameter to f_new_dynamic_attr.

This commit is contained in:
Pavel Machek 2000-03-01 14:42:59 +00:00
parent 31e79264a2
commit 62ab789de5
3 changed files with 5 additions and 5 deletions

View File

@ -33,10 +33,10 @@ f_new_inst(void)
}
struct f_inst *
f_new_dynamic_attr(int code)
f_new_dynamic_attr(int type, int code)
{
struct f_inst *f = f_new_inst();
f->aux = EAF_TYPE_INT | EAF_INLINE;
f->aux = type;
f->a2.i = code;
return f;
}

View File

@ -57,7 +57,7 @@ struct filter {
void filters_postconfig(void);
struct f_inst *f_new_inst(void);
struct f_inst *f_new_dynamic_attr(int code);
struct f_inst *f_new_dynamic_attr(int type, int code);
struct f_tree *f_new_tree(void);
struct f_tree *build_tree(struct f_tree *);

View File

@ -98,8 +98,8 @@ rip_iface_list:
| rip_iface_list ',' rip_iface
;
CF_ADDTO(dynamic_attr, RIP_METRIC { $$ = f_new_dynamic_attr(EA_RIP_METRIC); })
CF_ADDTO(dynamic_attr, RIP_TAG { $$ = f_new_dynamic_attr(EA_RIP_TAG); })
CF_ADDTO(dynamic_attr, RIP_METRIC { $$ = f_new_dynamic_attr(EAF_TYPE_INT | EAF_INLINE, EA_RIP_METRIC); })
CF_ADDTO(dynamic_attr, RIP_TAG { $$ = f_new_dynamic_attr(EAF_TYPE_INT | EAF_INLINE, EA_RIP_TAG); })
CF_CODE