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
nexedi
linux
Commits
2ab38503
Commit
2ab38503
authored
Feb 24, 2011
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xfrm: Const'ify xfrm_address_t args to xfrm_*_hash.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
9a7386ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
net/xfrm/xfrm_state.c
net/xfrm/xfrm_state.c
+6
-5
No files found.
net/xfrm/xfrm_state.c
View file @
2ab38503
...
...
@@ -50,8 +50,8 @@ static void xfrm_audit_state_replay(struct xfrm_state *x,
#endif
/* CONFIG_AUDITSYSCALL */
static
inline
unsigned
int
xfrm_dst_hash
(
struct
net
*
net
,
xfrm_address_t
*
daddr
,
xfrm_address_t
*
saddr
,
const
xfrm_address_t
*
daddr
,
const
xfrm_address_t
*
saddr
,
u32
reqid
,
unsigned
short
family
)
{
...
...
@@ -59,15 +59,16 @@ static inline unsigned int xfrm_dst_hash(struct net *net,
}
static
inline
unsigned
int
xfrm_src_hash
(
struct
net
*
net
,
xfrm_address_t
*
daddr
,
xfrm_address_t
*
saddr
,
const
xfrm_address_t
*
daddr
,
const
xfrm_address_t
*
saddr
,
unsigned
short
family
)
{
return
__xfrm_src_hash
(
daddr
,
saddr
,
family
,
net
->
xfrm
.
state_hmask
);
}
static
inline
unsigned
int
xfrm_spi_hash
(
struct
net
*
net
,
xfrm_address_t
*
daddr
,
__be32
spi
,
u8
proto
,
unsigned
short
family
)
xfrm_spi_hash
(
struct
net
*
net
,
const
xfrm_address_t
*
daddr
,
__be32
spi
,
u8
proto
,
unsigned
short
family
)
{
return
__xfrm_spi_hash
(
daddr
,
spi
,
proto
,
family
,
net
->
xfrm
.
state_hmask
);
}
...
...
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