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
21eddb5c
Commit
21eddb5c
authored
Feb 24, 2011
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xfrm: Const'ify xfrm_tmpl and xfrm_state args to xfrm_state_addr_cmp.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
1786b389
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/net/xfrm.h
include/net/xfrm.h
+3
-3
No files found.
include/net/xfrm.h
View file @
21eddb5c
...
...
@@ -970,21 +970,21 @@ xfrm_addr_any(const xfrm_address_t *addr, unsigned short family)
}
static
inline
int
__xfrm4_state_addr_cmp
(
struct
xfrm_tmpl
*
tmpl
,
struct
xfrm_state
*
x
)
__xfrm4_state_addr_cmp
(
const
struct
xfrm_tmpl
*
tmpl
,
const
struct
xfrm_state
*
x
)
{
return
(
tmpl
->
saddr
.
a4
&&
tmpl
->
saddr
.
a4
!=
x
->
props
.
saddr
.
a4
);
}
static
inline
int
__xfrm6_state_addr_cmp
(
struct
xfrm_tmpl
*
tmpl
,
struct
xfrm_state
*
x
)
__xfrm6_state_addr_cmp
(
const
struct
xfrm_tmpl
*
tmpl
,
const
struct
xfrm_state
*
x
)
{
return
(
!
ipv6_addr_any
((
struct
in6_addr
*
)
&
tmpl
->
saddr
)
&&
ipv6_addr_cmp
((
struct
in6_addr
*
)
&
tmpl
->
saddr
,
(
struct
in6_addr
*
)
&
x
->
props
.
saddr
));
}
static
inline
int
xfrm_state_addr_cmp
(
struct
xfrm_tmpl
*
tmpl
,
struct
xfrm_state
*
x
,
unsigned
short
family
)
xfrm_state_addr_cmp
(
const
struct
xfrm_tmpl
*
tmpl
,
const
struct
xfrm_state
*
x
,
unsigned
short
family
)
{
switch
(
family
)
{
case
AF_INET
:
...
...
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