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
5e6b930f
Commit
5e6b930f
authored
Feb 24, 2011
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xfrm: Const'ify address arguments to ->dst_lookup()
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
200ce96e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
include/net/xfrm.h
include/net/xfrm.h
+2
-2
net/ipv4/xfrm4_policy.c
net/ipv4/xfrm4_policy.c
+2
-2
net/ipv6/xfrm6_policy.c
net/ipv6/xfrm6_policy.c
+2
-2
No files found.
include/net/xfrm.h
View file @
5e6b930f
...
...
@@ -267,8 +267,8 @@ struct xfrm_policy_afinfo {
struct
dst_ops
*
dst_ops
;
void
(
*
garbage_collect
)(
struct
net
*
net
);
struct
dst_entry
*
(
*
dst_lookup
)(
struct
net
*
net
,
int
tos
,
xfrm_address_t
*
saddr
,
xfrm_address_t
*
daddr
);
const
xfrm_address_t
*
saddr
,
const
xfrm_address_t
*
daddr
);
int
(
*
get_saddr
)(
struct
net
*
net
,
xfrm_address_t
*
saddr
,
xfrm_address_t
*
daddr
);
void
(
*
decode_session
)(
struct
sk_buff
*
skb
,
struct
flowi
*
fl
,
...
...
net/ipv4/xfrm4_policy.c
View file @
5e6b930f
...
...
@@ -19,8 +19,8 @@
static
struct
xfrm_policy_afinfo
xfrm4_policy_afinfo
;
static
struct
dst_entry
*
xfrm4_dst_lookup
(
struct
net
*
net
,
int
tos
,
xfrm_address_t
*
saddr
,
xfrm_address_t
*
daddr
)
const
xfrm_address_t
*
saddr
,
const
xfrm_address_t
*
daddr
)
{
struct
flowi
fl
=
{
.
fl4_dst
=
daddr
->
a4
,
...
...
net/ipv6/xfrm6_policy.c
View file @
5e6b930f
...
...
@@ -27,8 +27,8 @@
static
struct
xfrm_policy_afinfo
xfrm6_policy_afinfo
;
static
struct
dst_entry
*
xfrm6_dst_lookup
(
struct
net
*
net
,
int
tos
,
xfrm_address_t
*
saddr
,
xfrm_address_t
*
daddr
)
const
xfrm_address_t
*
saddr
,
const
xfrm_address_t
*
daddr
)
{
struct
flowi
fl
=
{};
struct
dst_entry
*
dst
;
...
...
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