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
91447965
Commit
91447965
authored
Nov 04, 1999
by
Pavel Machek
Browse files
Possibility to access first extended attributes.
parent
2727bb7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
filter/config.Y
View file @
91447965
...
...
@@ -11,6 +11,8 @@
FIXME: create community lists
FIXME: access to dynamic attributes
FIXME: local namespace for functions
FIXME: enumerational types
FIXME: defined() keyword
*/
CF_HDR
...
...
filter/filter.c
View file @
91447965
...
...
@@ -305,7 +305,19 @@ interpret(struct f_inst *what)
}
break
;
case
'
ea
'
:
/* Access to extended attributes [hmm, but we need it read/write, do we?] */
bug
(
"Implement me"
);
{
eattr
*
e
=
ea_find
(
(
*
f_rte
)
->
attrs
->
eattrs
,
what
->
a2
.
i
);
if
(
!
e
)
{
res
.
type
=
T_VOID
;
break
;
}
res
.
type
=
what
->
a1
.
i
;
switch
(
what
->
a1
.
i
)
{
case
T_INT
:
res
.
val
.
i
=
e
->
u
.
data
;
break
;
}
}
break
;
case
'
cp
'
:
/* Convert prefix to ... */
ONEARG
;
...
...
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