Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
81b302a3
Commit
81b302a3
authored
Apr 28, 2008
by
YOSHIFUJI Hideaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
key: Use xfrm_addr_cmp() where appropriate.
Signed-off-by:
YOSHIFUJI Hideaki
<
yoshfuji@linux-ipv6.org
>
parent
5f95ac91
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
net/key/af_key.c
net/key/af_key.c
+1
-8
No files found.
net/key/af_key.c
View file @
81b302a3
...
@@ -767,14 +767,7 @@ static struct sk_buff *__pfkey_xfrm_state2msg(struct xfrm_state *x,
...
@@ -767,14 +767,7 @@ static struct sk_buff *__pfkey_xfrm_state2msg(struct xfrm_state *x,
}
}
/* identity & sensitivity */
/* identity & sensitivity */
if
(
xfrm_addr_cmp
(
&
x
->
sel
.
saddr
,
&
x
->
props
.
saddr
,
x
->
props
.
family
))
if
((
x
->
props
.
family
==
AF_INET
&&
x
->
sel
.
saddr
.
a4
!=
x
->
props
.
saddr
.
a4
)
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
||
(
x
->
props
.
family
==
AF_INET6
&&
memcmp
(
x
->
sel
.
saddr
.
a6
,
x
->
props
.
saddr
.
a6
,
sizeof
(
struct
in6_addr
)))
#endif
)
size
+=
sizeof
(
struct
sadb_address
)
+
sockaddr_size
;
size
+=
sizeof
(
struct
sadb_address
)
+
sockaddr_size
;
if
(
add_keys
)
{
if
(
add_keys
)
{
...
...
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