Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
bed9655b
Commit
bed9655b
authored
Mar 23, 2003
by
Hideaki Yoshifuji
Committed by
David S. Miller
Mar 23, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: Use ipv6_addr_any() for testing unspecified address.
parent
a895254c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
net/ipv6/addrconf.c
net/ipv6/addrconf.c
+3
-6
No files found.
net/ipv6/addrconf.c
View file @
bed9655b
...
@@ -426,8 +426,7 @@ static void dev_forward_change(struct inet6_dev *idev)
...
@@ -426,8 +426,7 @@ static void dev_forward_change(struct inet6_dev *idev)
}
}
for
(
ifa
=
idev
->
addr_list
;
ifa
;
ifa
=
ifa
->
if_next
)
{
for
(
ifa
=
idev
->
addr_list
;
ifa
;
ifa
=
ifa
->
if_next
)
{
ipv6_addr_prefix
(
&
addr
,
&
ifa
->
addr
,
ifa
->
prefix_len
);
ipv6_addr_prefix
(
&
addr
,
&
ifa
->
addr
,
ifa
->
prefix_len
);
if
(
addr
.
s6_addr32
[
0
]
==
0
&&
addr
.
s6_addr32
[
1
]
==
0
&&
if
(
ipv6_addr_any
(
&
addr
))
addr
.
s6_addr32
[
2
]
==
0
&&
addr
.
s6_addr32
[
3
]
==
0
)
continue
;
continue
;
if
(
idev
->
cnf
.
forwarding
)
if
(
idev
->
cnf
.
forwarding
)
ipv6_dev_ac_inc
(
idev
->
dev
,
&
addr
);
ipv6_dev_ac_inc
(
idev
->
dev
,
&
addr
);
...
@@ -2030,8 +2029,7 @@ static void addrconf_dad_completed(struct inet6_ifaddr *ifp)
...
@@ -2030,8 +2029,7 @@ static void addrconf_dad_completed(struct inet6_ifaddr *ifp)
struct
in6_addr
addr
;
struct
in6_addr
addr
;
ipv6_addr_prefix
(
&
addr
,
&
ifp
->
addr
,
ifp
->
prefix_len
);
ipv6_addr_prefix
(
&
addr
,
&
ifp
->
addr
,
ifp
->
prefix_len
);
if
(
addr
.
s6_addr32
[
0
]
||
addr
.
s6_addr32
[
1
]
||
if
(
!
ipv6_addr_any
(
&
addr
))
addr
.
s6_addr32
[
2
]
||
addr
.
s6_addr32
[
3
])
ipv6_dev_ac_inc
(
ifp
->
idev
->
dev
,
&
addr
);
ipv6_dev_ac_inc
(
ifp
->
idev
->
dev
,
&
addr
);
}
}
}
}
...
@@ -2368,8 +2366,7 @@ static void ipv6_ifa_notify(int event, struct inet6_ifaddr *ifp)
...
@@ -2368,8 +2366,7 @@ static void ipv6_ifa_notify(int event, struct inet6_ifaddr *ifp)
struct
in6_addr
addr
;
struct
in6_addr
addr
;
ipv6_addr_prefix
(
&
addr
,
&
ifp
->
addr
,
ifp
->
prefix_len
);
ipv6_addr_prefix
(
&
addr
,
&
ifp
->
addr
,
ifp
->
prefix_len
);
if
(
addr
.
s6_addr32
[
0
]
||
addr
.
s6_addr32
[
1
]
||
if
(
!
ipv6_addr_any
(
&
addr
))
addr
.
s6_addr32
[
2
]
||
addr
.
s6_addr32
[
3
])
ipv6_dev_ac_dec
(
ifp
->
idev
->
dev
,
&
addr
);
ipv6_dev_ac_dec
(
ifp
->
idev
->
dev
,
&
addr
);
}
}
if
(
!
ipv6_chk_addr
(
&
ifp
->
addr
,
NULL
))
if
(
!
ipv6_chk_addr
(
&
ifp
->
addr
,
NULL
))
...
...
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