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
d1bdd8cc
Commit
d1bdd8cc
authored
Jun 03, 2010
by
dermiste
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing kernel_addresses looping
parent
219c1400
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
kernel_socket.c
kernel_socket.c
+3
-2
No files found.
kernel_socket.c
View file @
d1bdd8cc
...
...
@@ -659,7 +659,7 @@ kernel_addresses(char *ifname, int ifindex, int ll,
i
=
0
;
while
(
ifap
&&
i
<
maxroutes
)
{
if
(
ifap
->
ifa_name
==
NULL
||
ifname
==
NULL
||
strcmp
(
ifap
->
ifa_name
,
ifname
)
!=
0
)
if
(
(
ifname
!=
NULL
&&
strcmp
(
ifap
->
ifa_name
,
ifname
)
!=
0
)
)
goto
next
;
if
(
ifap
->
ifa_addr
->
sa_family
==
AF_INET6
)
{
struct
sockaddr_in6
*
sin6
=
(
struct
sockaddr_in6
*
)
ifap
->
ifa_addr
;
...
...
@@ -671,6 +671,7 @@ kernel_addresses(char *ifname, int ifindex, int ll,
routes
[
i
].
ifindex
=
ifindex
;
routes
[
i
].
proto
=
RTPROT_BABEL_LOCAL
;
memset
(
routes
[
i
].
gw
,
0
,
16
);
i
++
;
}
else
if
(
ifap
->
ifa_addr
->
sa_family
==
AF_INET
)
{
struct
sockaddr_in
*
sin
=
(
struct
sockaddr_in
*
)
ifap
->
ifa_addr
;
if
(
ll
)
...
...
@@ -682,10 +683,10 @@ kernel_addresses(char *ifname, int ifindex, int ll,
routes
[
i
].
ifindex
=
ifindex
;
routes
[
i
].
proto
=
RTPROT_BABEL_LOCAL
;
memset
(
routes
[
i
].
gw
,
0
,
16
);
i
++
;
}
next:
ifap
=
ifap
->
ifa_next
;
i
++
;
}
freeifaddrs
(
ifa
);
...
...
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