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
ca3d562b
Commit
ca3d562b
authored
Jan 15, 1999
by
Pavel Machek
Browse files
filters_init() renamed to filters_postconfig().
parent
c9b66706
Changes
5
Hide whitespace changes
Inline
Side-by-side
Makefile
0 → 100644
View file @
ca3d562b
# Generated automatically from Makefile-top.in by configure.
# Makefile for in place build of BIRD
# (c) 1999 Martin Mares <mj@ucw.cz>
objdir
=
obj
all
:
$(MAKE)
-C
$(objdir)
$@
clean
:
$(MAKE)
-C
$(objdir)
clean
rm
-f
`
find
.
-name
"*~"
-or
-name
"*.[oa]"
-or
-name
"
\#
*
\#
"
-or
-name
TAGS
-or
-name
core
-or
-name
depend
-or
-name
.#
*
`
distclean
:
clean
rm
-rf
$(objdir)
rm
-f
config.
*
configure sysdep/autoconf.h Makefile
bird.conf
0 → 100644
View file @
ca3d562b
/*
*
This
is
an
example
configuration
file
.
*/
# Yet another comment
router
id
62
.
168
.
0
.
1
define
xyzzy
=
120
+
10
function
test
() {
int
i
;
printdebug
;
i
=
5
;
print
(
i
);
printdebug
;
i
=
1234
;
print
(
i
);
printdebug
;
}
/*
protocol
rip
MyRIP_test
{
preference
xyzzy
debug
all
port
1520
period
5
garbagetime
30
interface
"*"
}
*/
protocol
device
{
disabled
interface
"eth*"
,
"ppp*"
}
#protocol kernel {
# disabled
# learn; # Learn all routes from the kernel
# scan time 10; # Scan kernel tables every 10 seconds
#}
protocol
static
{
# disabled
route
0
.
0
.
0
.
0
/
0
via
62
.
168
.
0
.
13
route
62
.
168
.
0
.
0
/
25
reject
# route 10.0.0.0/8 reject
# route 10.1.1.0:255.255.255.0 via 62.168.0.3
# route 10.1.2.0:255.255.255.0 via 62.168.0.3
# route 10.1.3.0:255.255.255.0 via 62.168.0.4
# route 10.2.0.0/24 via "arc0"
}
filter/f-util.c
View file @
ca3d562b
...
...
@@ -56,7 +56,7 @@ interpret(struct f_instruction *what)
}
void
filters_
init
(
void
)
filters_
postconfig
(
void
)
{
if
(
!
last_func
)
printf
(
"No function defined
\n
"
);
...
...
filter/filter.h
View file @
ca3d562b
...
...
@@ -18,4 +18,6 @@ struct f_instruction {
void
*
arg1
,
*
arg2
;
};
void
filters_postconfig
(
void
);
#endif
sysdep/unix/main.c
View file @
ca3d562b
...
...
@@ -83,6 +83,7 @@ read_config(void)
cf_read_hook
=
cf_read
;
cf_lex_init
(
1
);
cf_parse
();
filters_postconfig
();
protos_postconfig
();
}
/*
...
...
@@ -108,7 +109,6 @@ main(void)
debug
(
"Reading configuration file.
\n
"
);
read_config
();
filters_init
();
signal_init
();
...
...
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