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
c6f3a288
Commit
c6f3a288
authored
Aug 05, 2019
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename interface_up to interface_updown.
As suggested by Christof Schulze.
parent
e8bf4030
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
babeld.c
babeld.c
+3
-3
interface.c
interface.c
+5
-5
interface.h
interface.h
+1
-1
No files found.
babeld.c
View file @
c6f3a288
...
...
@@ -805,7 +805,7 @@ main(int argc, char **argv)
usleep
(
roughly
(
10000
));
gettime
(
&
now
);
/* We need to flush so interface_up won't try to reinstall. */
/* We need to flush so interface_up
down
won't try to reinstall. */
flush_all_routes
();
FOR_ALL_INTERFACES
(
ifp
)
{
...
...
@@ -828,7 +828,7 @@ main(int argc, char **argv)
flushbuf
(
&
ifp
->
buf
,
ifp
);
usleep
(
roughly
(
10000
));
gettime
(
&
now
);
interface_up
(
ifp
,
0
);
interface_up
down
(
ifp
,
0
);
}
release_tables
();
kernel_setup_socket
(
0
);
...
...
@@ -885,7 +885,7 @@ main(int argc, char **argv)
FOR_ALL_INTERFACES
(
ifp
)
{
if
(
!
if_up
(
ifp
))
continue
;
interface_up
(
ifp
,
0
);
interface_up
down
(
ifp
,
0
);
}
kernel_setup_socket
(
0
);
kernel_setup
(
0
);
...
...
interface.c
View file @
c6f3a288
...
...
@@ -109,7 +109,7 @@ flush_interface(char *ifname)
if
(
ifp
==
NULL
)
return
0
;
interface_up
(
ifp
,
0
);
interface_up
down
(
ifp
,
0
);
if
(
prev
)
prev
->
next
=
ifp
->
next
;
else
...
...
@@ -271,7 +271,7 @@ check_link_local_addresses(struct interface *ifp)
}
int
interface_up
(
struct
interface
*
ifp
,
int
up
)
interface_up
down
(
struct
interface
*
ifp
,
int
up
)
{
int
mtu
,
rc
,
type
;
struct
ipv6_mreq
mreq
;
...
...
@@ -519,7 +519,7 @@ interface_up(struct interface *ifp, int up)
fail:
assert
(
up
);
interface_up
(
ifp
,
0
);
interface_up
down
(
ifp
,
0
);
local_notify_interface
(
ifp
,
LOCAL_CHANGE
);
return
-
1
;
}
...
...
@@ -550,7 +550,7 @@ check_interfaces(void)
ifindex
=
if_nametoindex
(
ifp
->
name
);
if
(
ifindex
!=
ifp
->
ifindex
)
{
debugf
(
"Noticed ifindex change for %s.
\n
"
,
ifp
->
name
);
interface_up
(
ifp
,
0
);
interface_up
down
(
ifp
,
0
);
ifp
->
ifindex
=
ifindex
;
ifindex_changed
=
1
;
}
...
...
@@ -561,7 +561,7 @@ check_interfaces(void)
rc
=
0
;
if
((
rc
>
0
)
!=
if_up
(
ifp
))
{
debugf
(
"Noticed status change for %s.
\n
"
,
ifp
->
name
);
interface_up
(
ifp
,
rc
>
0
);
interface_up
down
(
ifp
,
rc
>
0
);
}
if
(
if_up
(
ifp
))
{
...
...
interface.h
View file @
c6f3a288
...
...
@@ -151,6 +151,6 @@ int flush_interface(char *ifname);
unsigned
jitter
(
struct
buffered
*
buf
,
int
urgent
);
unsigned
update_jitter
(
struct
interface
*
ifp
,
int
urgent
);
void
set_timeout
(
struct
timeval
*
timeout
,
int
msecs
);
int
interface_up
(
struct
interface
*
ifp
,
int
up
);
int
interface_up
down
(
struct
interface
*
ifp
,
int
up
);
int
interface_ll_address
(
struct
interface
*
ifp
,
const
unsigned
char
*
address
);
void
check_interfaces
(
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