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
b4b7c0b3
Commit
b4b7c0b3
authored
Feb 24, 2011
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xfrm: Const'ify selector args in xfrm_migrate paths.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
5f803b58
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
include/net/xfrm.h
include/net/xfrm.h
+1
-1
net/xfrm/xfrm_policy.c
net/xfrm/xfrm_policy.c
+4
-4
No files found.
include/net/xfrm.h
View file @
b4b7c0b3
...
@@ -1493,7 +1493,7 @@ extern int km_migrate(const struct xfrm_selector *sel, u8 dir, u8 type,
...
@@ -1493,7 +1493,7 @@ extern int km_migrate(const struct xfrm_selector *sel, u8 dir, u8 type,
extern
struct
xfrm_state
*
xfrm_migrate_state_find
(
struct
xfrm_migrate
*
m
);
extern
struct
xfrm_state
*
xfrm_migrate_state_find
(
struct
xfrm_migrate
*
m
);
extern
struct
xfrm_state
*
xfrm_state_migrate
(
struct
xfrm_state
*
x
,
extern
struct
xfrm_state
*
xfrm_state_migrate
(
struct
xfrm_state
*
x
,
struct
xfrm_migrate
*
m
);
struct
xfrm_migrate
*
m
);
extern
int
xfrm_migrate
(
struct
xfrm_selector
*
sel
,
u8
dir
,
u8
type
,
extern
int
xfrm_migrate
(
const
struct
xfrm_selector
*
sel
,
u8
dir
,
u8
type
,
struct
xfrm_migrate
*
m
,
int
num_bundles
,
struct
xfrm_migrate
*
m
,
int
num_bundles
,
struct
xfrm_kmaddress
*
k
);
struct
xfrm_kmaddress
*
k
);
#endif
#endif
...
...
net/xfrm/xfrm_policy.c
View file @
b4b7c0b3
...
@@ -2736,8 +2736,8 @@ EXPORT_SYMBOL_GPL(xfrm_audit_policy_delete);
...
@@ -2736,8 +2736,8 @@ EXPORT_SYMBOL_GPL(xfrm_audit_policy_delete);
#endif
#endif
#ifdef CONFIG_XFRM_MIGRATE
#ifdef CONFIG_XFRM_MIGRATE
static
int
xfrm_migrate_selector_match
(
struct
xfrm_selector
*
sel_cmp
,
static
int
xfrm_migrate_selector_match
(
const
struct
xfrm_selector
*
sel_cmp
,
struct
xfrm_selector
*
sel_tgt
)
const
struct
xfrm_selector
*
sel_tgt
)
{
{
if
(
sel_cmp
->
proto
==
IPSEC_ULPROTO_ANY
)
{
if
(
sel_cmp
->
proto
==
IPSEC_ULPROTO_ANY
)
{
if
(
sel_tgt
->
family
==
sel_cmp
->
family
&&
if
(
sel_tgt
->
family
==
sel_cmp
->
family
&&
...
@@ -2757,7 +2757,7 @@ static int xfrm_migrate_selector_match(struct xfrm_selector *sel_cmp,
...
@@ -2757,7 +2757,7 @@ static int xfrm_migrate_selector_match(struct xfrm_selector *sel_cmp,
return
0
;
return
0
;
}
}
static
struct
xfrm_policy
*
xfrm_migrate_policy_find
(
struct
xfrm_selector
*
sel
,
static
struct
xfrm_policy
*
xfrm_migrate_policy_find
(
const
struct
xfrm_selector
*
sel
,
u8
dir
,
u8
type
)
u8
dir
,
u8
type
)
{
{
struct
xfrm_policy
*
pol
,
*
ret
=
NULL
;
struct
xfrm_policy
*
pol
,
*
ret
=
NULL
;
...
@@ -2897,7 +2897,7 @@ static int xfrm_migrate_check(const struct xfrm_migrate *m, int num_migrate)
...
@@ -2897,7 +2897,7 @@ static int xfrm_migrate_check(const struct xfrm_migrate *m, int num_migrate)
return
0
;
return
0
;
}
}
int
xfrm_migrate
(
struct
xfrm_selector
*
sel
,
u8
dir
,
u8
type
,
int
xfrm_migrate
(
const
struct
xfrm_selector
*
sel
,
u8
dir
,
u8
type
,
struct
xfrm_migrate
*
m
,
int
num_migrate
,
struct
xfrm_migrate
*
m
,
int
num_migrate
,
struct
xfrm_kmaddress
*
k
)
struct
xfrm_kmaddress
*
k
)
{
{
...
...
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