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
f04c0da9
Commit
f04c0da9
authored
Feb 06, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add -w.
parent
bf635e48
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
babel.c
babel.c
+14
-7
babel.h
babel.h
+1
-0
No files found.
babel.c
View file @
f04c0da9
...
@@ -62,6 +62,7 @@ int reboot_time;
...
@@ -62,6 +62,7 @@ int reboot_time;
int
idle_time
=
320
;
int
idle_time
=
320
;
int
link_detect
=
0
;
int
link_detect
=
0
;
int
all_wireless
=
0
;
int
wireless_hello_interval
=
-
1
;
int
wireless_hello_interval
=
-
1
;
int
wired_hello_interval
=
-
1
;
int
wired_hello_interval
=
-
1
;
int
idle_hello_interval
=
-
1
;
int
idle_hello_interval
=
-
1
;
...
@@ -190,6 +191,8 @@ main(int argc, char **argv)
...
@@ -190,6 +191,8 @@ main(int argc, char **argv)
do_ipv4
=
1
;
do_ipv4
=
1
;
}
else
if
(
strcmp
(
*
arg
,
"-l"
)
==
0
)
{
}
else
if
(
strcmp
(
*
arg
,
"-l"
)
==
0
)
{
link_detect
=
1
;
link_detect
=
1
;
}
else
if
(
strcmp
(
*
arg
,
"-w"
)
==
0
)
{
all_wireless
=
1
;
}
else
{
}
else
{
goto
syntax
;
goto
syntax
;
}
}
...
@@ -357,13 +360,17 @@ main(int argc, char **argv)
...
@@ -357,13 +360,17 @@ main(int argc, char **argv)
/* 40 for IPv6 header, 8 for UDP header, 12 for good luck. */
/* 40 for IPv6 header, 8 for UDP header, 12 for good luck. */
mtu
-=
60
;
mtu
-=
60
;
rc
=
kernel_interface_wireless
(
*
arg
,
ifindex
);
if
(
all_wireless
)
{
if
(
rc
<
0
)
{
fprintf
(
stderr
,
"Warning: "
"couldn't determine whether %s is a wireless interface.
\n
"
,
*
arg
);
rc
=
1
;
rc
=
1
;
}
else
{
rc
=
kernel_interface_wireless
(
*
arg
,
ifindex
);
if
(
rc
<
0
)
{
fprintf
(
stderr
,
"Warning: couldn't determine whether %s "
"is a wireless interface.
\n
"
,
*
arg
);
rc
=
1
;
}
}
}
debugf
(
"Adding %s network %s (%d).
\n
"
,
debugf
(
"Adding %s network %s (%d).
\n
"
,
rc
?
"wireless"
:
"wired"
,
*
arg
,
ifindex
);
rc
?
"wireless"
:
"wired"
,
*
arg
,
ifindex
);
...
@@ -617,7 +624,7 @@ main(int argc, char **argv)
...
@@ -617,7 +624,7 @@ main(int argc, char **argv)
" "
" "
"[-h hello] [-H wired_hello] [-i idle_hello]
\n
"
"[-h hello] [-H wired_hello] [-i idle_hello]
\n
"
" "
" "
"[-u update] [-k metric] [-4] [-s] [-P] [-c cost]
\n
"
"[-u update] [-k metric] [-4] [-s] [-P] [-c cost]
[-l] [-w]
\n
"
" "
" "
"[-d level] [-x net cost] [-X net cost]... id interface...
\n
"
,
"[-d level] [-x net cost] [-X net cost]... id interface...
\n
"
,
argv
[
0
]);
argv
[
0
]);
...
...
babel.h
View file @
f04c0da9
...
@@ -67,6 +67,7 @@ extern int do_ipv4;
...
@@ -67,6 +67,7 @@ extern int do_ipv4;
extern
int
wireless_hello_interval
,
wired_hello_interval
,
idle_hello_interval
;
extern
int
wireless_hello_interval
,
wired_hello_interval
,
idle_hello_interval
;
extern
int
idle_time
;
extern
int
idle_time
;
extern
int
link_detect
;
extern
int
link_detect
;
extern
int
all_wireless
;
extern
unsigned
char
myid
[
16
];
extern
unsigned
char
myid
[
16
];
...
...
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