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