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
a6c2e611
Commit
a6c2e611
authored
Feb 22, 2011
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xfrm: Mark flowi arg to xfrm_tmpl_resolve{,_one}() const.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
73ff93cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
net/xfrm/xfrm_policy.c
net/xfrm/xfrm_policy.c
+4
-6
No files found.
net/xfrm/xfrm_policy.c
View file @
a6c2e611
...
...
@@ -1157,9 +1157,8 @@ xfrm_get_saddr(struct net *net, xfrm_address_t *local, xfrm_address_t *remote,
/* Resolve list of templates for the flow, given policy. */
static
int
xfrm_tmpl_resolve_one
(
struct
xfrm_policy
*
policy
,
struct
flowi
*
fl
,
struct
xfrm_state
**
xfrm
,
unsigned
short
family
)
xfrm_tmpl_resolve_one
(
struct
xfrm_policy
*
policy
,
const
struct
flowi
*
fl
,
struct
xfrm_state
**
xfrm
,
unsigned
short
family
)
{
struct
net
*
net
=
xp_net
(
policy
);
int
nx
;
...
...
@@ -1214,9 +1213,8 @@ xfrm_tmpl_resolve_one(struct xfrm_policy *policy, struct flowi *fl,
}
static
int
xfrm_tmpl_resolve
(
struct
xfrm_policy
**
pols
,
int
npols
,
struct
flowi
*
fl
,
struct
xfrm_state
**
xfrm
,
unsigned
short
family
)
xfrm_tmpl_resolve
(
struct
xfrm_policy
**
pols
,
int
npols
,
const
struct
flowi
*
fl
,
struct
xfrm_state
**
xfrm
,
unsigned
short
family
)
{
struct
xfrm_state
*
tp
[
XFRM_MAX_DEPTH
];
struct
xfrm_state
**
tpp
=
(
npols
>
1
)
?
tp
:
xfrm
;
...
...
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