summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-03-01 15:42:59 +0100
committerPavel Machek <pavel@ucw.cz>2000-03-01 15:42:59 +0100
commit62ab789de5f5ace97a93fce551469f0229ba8c92 (patch)
treef5f399996b90ce9cd067d90f2b08d671b2e3cafd
parent31e79264a21df1acdbfbb66af40e05073b115a2c (diff)
downloadbird-62ab789de5f5ace97a93fce551469f0229ba8c92.tar
bird-62ab789de5f5ace97a93fce551469f0229ba8c92.zip
Added type parameter to f_new_dynamic_attr.
-rw-r--r--filter/f-util.c4
-rw-r--r--filter/filter.h2
-rw-r--r--proto/rip/config.Y4
3 files changed, 5 insertions, 5 deletions
diff --git a/filter/f-util.c b/filter/f-util.c
index 6a42b9d..1f3c79a 100644
--- a/filter/f-util.c
+++ b/filter/f-util.c
@@ -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;
}
diff --git a/filter/filter.h b/filter/filter.h
index bbf3040..3f05f6a 100644
--- a/filter/filter.h
+++ b/filter/filter.h
@@ -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 *);
diff --git a/proto/rip/config.Y b/proto/rip/config.Y
index e1094a5..99b0f9a 100644
--- a/proto/rip/config.Y
+++ b/proto/rip/config.Y
@@ -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