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
caad295f
Commit
caad295f
authored
Apr 10, 2008
by
YOSHIFUJI Hideaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: Use ipv6_addr_equal() instead of !ipv6_addr_cmp().
Signed-off-by:
YOSHIFUJI Hideaki
<
yoshfuji@linux-ipv6.org
>
parent
ff4e1fb0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
net/ipv6/addrconf.c
net/ipv6/addrconf.c
+1
-1
net/ipv6/tcp_ipv6.c
net/ipv6/tcp_ipv6.c
+2
-2
No files found.
net/ipv6/addrconf.c
View file @
caad295f
...
...
@@ -2951,7 +2951,7 @@ int ipv6_chk_home_addr(struct net *net, struct in6_addr *addr)
for
(
ifp
=
inet6_addr_lst
[
hash
];
ifp
;
ifp
=
ifp
->
lst_next
)
{
if
(
!
net_eq
(
dev_net
(
ifp
->
idev
->
dev
),
net
))
continue
;
if
(
ipv6_addr_
cmp
(
&
ifp
->
addr
,
addr
)
==
0
&&
if
(
ipv6_addr_
equal
(
&
ifp
->
addr
,
addr
)
&&
(
ifp
->
flags
&
IFA_F_HOMEADDRESS
))
{
ret
=
1
;
break
;
...
...
net/ipv6/tcp_ipv6.c
View file @
caad295f
...
...
@@ -543,7 +543,7 @@ static struct tcp_md5sig_key *tcp_v6_md5_do_lookup(struct sock *sk,
return
NULL
;
for
(
i
=
0
;
i
<
tp
->
md5sig_info
->
entries6
;
i
++
)
{
if
(
ipv6_addr_
cmp
(
&
tp
->
md5sig_info
->
keys6
[
i
].
addr
,
addr
)
==
0
)
if
(
ipv6_addr_
equal
(
&
tp
->
md5sig_info
->
keys6
[
i
].
addr
,
addr
)
)
return
&
tp
->
md5sig_info
->
keys6
[
i
].
base
;
}
return
NULL
;
...
...
@@ -632,7 +632,7 @@ static int tcp_v6_md5_do_del(struct sock *sk, struct in6_addr *peer)
int
i
;
for
(
i
=
0
;
i
<
tp
->
md5sig_info
->
entries6
;
i
++
)
{
if
(
ipv6_addr_
cmp
(
&
tp
->
md5sig_info
->
keys6
[
i
].
addr
,
peer
)
==
0
)
{
if
(
ipv6_addr_
equal
(
&
tp
->
md5sig_info
->
keys6
[
i
].
addr
,
peer
)
)
{
/* Free the key */
kfree
(
tp
->
md5sig_info
->
keys6
[
i
].
base
.
key
);
tp
->
md5sig_info
->
entries6
--
;
...
...
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