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
43bdeb2f
Commit
43bdeb2f
authored
Aug 05, 2014
by
Matthieu Boutier
Committed by
Juliusz Chroboczek
Mar 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Notify all address changes, not only global.
parent
049520a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
kernel_netlink.c
kernel_netlink.c
+5
-1
No files found.
kernel_netlink.c
View file @
43bdeb2f
...
@@ -1398,6 +1398,10 @@ filter_link(struct nlmsghdr *nh, void *data)
...
@@ -1398,6 +1398,10 @@ filter_link(struct nlmsghdr *nh, void *data)
return
0
;
return
0
;
}
}
/* If data is null, takes all addresses. If data is not null, takes
either link-local or global addresses depending of the value of
data[4]. */
static
int
static
int
filter_addresses
(
struct
nlmsghdr
*
nh
,
void
*
data
)
filter_addresses
(
struct
nlmsghdr
*
nh
,
void
*
data
)
{
{
...
@@ -1437,7 +1441,7 @@ filter_addresses(struct nlmsghdr *nh, void *data)
...
@@ -1437,7 +1441,7 @@ filter_addresses(struct nlmsghdr *nh, void *data)
if
(
rc
<
0
)
if
(
rc
<
0
)
return
0
;
return
0
;
if
(
ll
==
!
IN6_IS_ADDR_LINKLOCAL
(
&
addr
))
if
(
data
&&
ll
==
!
IN6_IS_ADDR_LINKLOCAL
(
&
addr
))
return
0
;
return
0
;
if
(
ifindex
&&
ifa
->
ifa_index
!=
ifindex
)
if
(
ifindex
&&
ifa
->
ifa_index
!=
ifindex
)
...
...
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