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
8eb70804
Commit
8eb70804
authored
Mar 17, 2009
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow running with no interfaces given on command line.
parent
82ccad95
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
babel.c
babel.c
+11
-6
No files found.
babel.c
View file @
8eb70804
...
...
@@ -133,9 +133,9 @@ main(int argc, char **argv)
arg
=
argv
;
SHIFT
E
();
SHIFT
();
while
((
*
arg
)[
0
]
==
'-'
)
{
while
(
*
arg
&&
(
*
arg
)[
0
]
==
'-'
)
{
if
(
strcmp
(
*
arg
,
"--"
)
==
0
)
{
SHIFTE
();
break
;
...
...
@@ -234,7 +234,7 @@ main(int argc, char **argv)
}
else
{
goto
syntax
;
}
SHIFT
E
();
SHIFT
();
}
...
...
@@ -340,19 +340,19 @@ main(int argc, char **argv)
goto
fail_pid
;
}
{
if
(
*
arg
)
{
unsigned
char
dummy
[
16
];
rc
=
parse_address
(
*
arg
,
dummy
,
NULL
);
if
(
rc
>=
0
)
{
fprintf
(
stderr
,
"Warning: obsolete router-id given.
\n
"
);
SHIFT
E
();
SHIFT
();
}
}
rc
=
finalise_config
();
if
(
rc
<
0
)
{
fprintf
(
stderr
,
"Couldn't finalise configuration.
\n
"
);
exit
(
1
)
;
goto
fail
;
}
while
(
*
arg
)
{
...
...
@@ -363,6 +363,11 @@ main(int argc, char **argv)
SHIFT
();
}
if
(
networks
==
NULL
)
{
fprintf
(
stderr
,
"Eek... asked to run on no interfaces!
\n
"
);
goto
fail
;
}
FOR_ALL_NETS
(
net
)
{
/* net->ifindex is not necessarily valid at this point */
int
ifindex
=
if_nametoindex
(
net
->
ifname
);
...
...
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