Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
70470e41
Commit
70470e41
authored
Mar 09, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Redistribute local addresses by default.
parent
c655714c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
babel.c
babel.c
+6
-0
filter.c
filter.c
+14
-0
filter.h
filter.h
+1
-0
No files found.
babel.c
View file @
70470e41
...
@@ -231,6 +231,12 @@ main(int argc, char **argv)
...
@@ -231,6 +231,12 @@ main(int argc, char **argv)
}
}
}
}
rc
=
finalise_filters
();
if
(
rc
<
0
)
{
fprintf
(
stderr
,
"Couldn't finalise filters.
\n
"
);
exit
(
1
);
}
if
(
wireless_hello_interval
<=
0
)
if
(
wireless_hello_interval
<=
0
)
wireless_hello_interval
=
6
;
wireless_hello_interval
=
6
;
...
...
filter.c
View file @
70470e41
...
@@ -475,3 +475,17 @@ redistribute_filter(const unsigned char *prefix, unsigned short plen,
...
@@ -475,3 +475,17 @@ redistribute_filter(const unsigned char *prefix, unsigned short plen,
res
=
INFINITY
;
res
=
INFINITY
;
return
res
;
return
res
;
}
}
int
finalise_filters
()
{
struct
filter
*
filter
=
calloc
(
1
,
sizeof
(
struct
filter
));
if
(
filter
==
NULL
)
return
-
1
;
filter
->
proto
=
RTPROT_BABEL_LOCAL
;
filter
->
plen_le
=
128
;
add_filter
(
filter
,
&
redistribute_filters
);
return
1
;
}
filter.h
View file @
70470e41
...
@@ -47,3 +47,4 @@ int output_filter(const unsigned char *id, const unsigned char *prefix,
...
@@ -47,3 +47,4 @@ int output_filter(const unsigned char *id, const unsigned char *prefix,
unsigned
short
plen
,
unsigned
int
ifindex
);
unsigned
short
plen
,
unsigned
int
ifindex
);
int
redistribute_filter
(
const
unsigned
char
*
prefix
,
unsigned
short
plen
,
int
redistribute_filter
(
const
unsigned
char
*
prefix
,
unsigned
short
plen
,
unsigned
int
ifindex
,
int
proto
);
unsigned
int
ifindex
,
int
proto
);
int
finalise_filters
(
void
);
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