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
7e1f9971
Commit
7e1f9971
authored
Dec 01, 1999
by
Pavel Machek
Browse files
accept should behave as return, not running any commands after it.
parent
639e6285
Changes
2
Hide whitespace changes
Inline
Side-by-side
bird.conf
View file @
7e1f9971
...
...
@@ -11,6 +11,8 @@ define xyzzy = 120+10;
filter
testf
int
j
;
{
print
"Ok, accepting"
;
accept
;
print
"Heya, filtering route to "
rta
.
net
.
ip
" prefixlen "
rta
.
net
.
len
;
print
"This route was from "
rta
.
from
;
j
=
7
;
...
...
@@ -33,7 +35,7 @@ protocol rip MyRIP_test {
passwords
{
password
"ahoj"
from
0
to
10
;
password
"nazdar"
from
10
;
}
authentication
md5
;
authentication
none
;
}
protocol
device
{
...
...
filter/filter.c
View file @
7e1f9971
...
...
@@ -286,7 +286,7 @@ interpret(struct f_inst *what)
case
F_REJECT
:
/* FIXME (noncritical) Should print compele route along with reason to reject route */
res
.
type
=
T_RETURN
;
res
.
val
.
i
=
what
->
a1
.
i
;
break
;
return
res
;
/* We have to return now, no more processing. */
case
F_NONL
:
case
F_NOP
:
break
;
...
...
@@ -412,6 +412,7 @@ interpret(struct f_inst *what)
return
res
;
}
/* FIXME: tmp_attrs is unreferenced. That can't be right */
int
f_run
(
struct
filter
*
filter
,
struct
rte
**
rte
,
struct
ea_list
**
tmp_attrs
,
struct
linpool
*
tmp_pool
)
{
...
...
Write
Preview
Markdown
is supported
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