Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
labs
BIRD Internet Routing Daemon
Commits
9f4929e7
Commit
9f4929e7
authored
Mar 04, 2000
by
Martin Mareš
Browse files
Renamed EAF_INLINE to EAF_TEMP to make the name reflect the real meaning.
parent
b9626ec6
Changes
6
Show whitespace changes
Inline
Side-by-side
filter/config.Y
View file @
9f4929e7
...
...
@@ -419,7 +419,7 @@ cmd:
}
| UNSET '(' rtadot dynamic_attr ')' ';' {
$$ = $4;
$$->aux = EAF_TYPE_UNDEF | EAF_
INLINE
;
$$->aux = EAF_TYPE_UNDEF | EAF_
TEMP
;
$$->code = P('e','S');
$$->a1.p = NULL;
}
...
...
filter/filter.c
View file @
9f4929e7
...
...
@@ -361,7 +361,7 @@ interpret(struct f_inst *what)
break
;
}
if
(
what
->
aux
&
EAF_
INLINE
)
{
if
(
!
(
what
->
aux
&
EAF_
TEMP
)
)
{
*
f_rte
=
rte_do_cow
(
*
f_rte
);
l
->
next
=
(
*
f_rte
)
->
attrs
->
eattrs
;
(
*
f_rte
)
->
attrs
->
eattrs
=
l
;
...
...
nest/route.h
View file @
9f4929e7
...
...
@@ -300,7 +300,7 @@ typedef struct eattr {
#define EAF_TYPE_UNDEF 0x0f
/* `force undefined' entry */
#define EAF_EMBEDDED 0x01
/* Data stored in eattr.u.data (part of type spec) */
#define EAF_VAR_LENGTH 0x02
/* Attribute length is variable */
#define EAF_
INLINE
0x80
/*
Copy of an attribute inlined in rte (temporary ea_lists only
) */
#define EAF_
TEMP
0x80
/*
A temporary attribute (the one stored in the tmp attr list
) */
struct
adata
{
unsigned
int
length
;
...
...
nest/rt-attr.c
View file @
9f4929e7
...
...
@@ -253,8 +253,8 @@ ea_dump(ea_list *e)
{
eattr
*
a
=
&
e
->
attrs
[
i
];
debug
(
" %02x:%02x.%02x"
,
EA_PROTO
(
a
->
id
),
EA_ID
(
a
->
id
),
a
->
flags
);
if
(
a
->
type
&
EAF_
INLINE
)
debug
(
"
*
"
);
if
(
a
->
type
&
EAF_
TEMP
)
debug
(
"
T
"
);
debug
(
"=%c"
,
"?iO?I?P???S?????"
[
a
->
type
&
EAF_TYPE_MASK
]);
if
(
a
->
type
&
EAF_EMBEDDED
)
debug
(
":%08x"
,
a
->
u
.
data
);
...
...
proto/rip/config.Y
View file @
9f4929e7
...
...
@@ -98,8 +98,8 @@ rip_iface_list:
| rip_iface_list ',' rip_iface
;
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_ADDTO(dynamic_attr, RIP_METRIC { $$ = f_new_dynamic_attr(EAF_TYPE_INT | EAF_
TEMP
, EA_RIP_METRIC); })
CF_ADDTO(dynamic_attr, RIP_TAG { $$ = f_new_dynamic_attr(EAF_TYPE_INT | EAF_
TEMP
, EA_RIP_TAG); })
CF_CODE
...
...
proto/rip/rip.c
View file @
9f4929e7
...
...
@@ -642,11 +642,11 @@ rip_gen_attrs(struct proto *p, struct linpool *pool, int metric, u16 tag)
l
->
count
=
2
;
l
->
attrs
[
0
].
id
=
EA_RIP_TAG
;
l
->
attrs
[
0
].
flags
=
0
;
l
->
attrs
[
0
].
type
=
EAF_TYPE_INT
|
EAF_
INLINE
;
l
->
attrs
[
0
].
type
=
EAF_TYPE_INT
|
EAF_
TEMP
;
l
->
attrs
[
0
].
u
.
data
=
tag
;
l
->
attrs
[
1
].
id
=
EA_RIP_METRIC
;
l
->
attrs
[
1
].
flags
=
0
;
l
->
attrs
[
1
].
type
=
EAF_TYPE_INT
|
EAF_
INLINE
;
l
->
attrs
[
1
].
type
=
EAF_TYPE_INT
|
EAF_
TEMP
;
l
->
attrs
[
1
].
u
.
data
=
metric
;
return
l
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment