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
8f029de2
Commit
8f029de2
authored
Feb 22, 2011
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xfrm: Mark flowi arg to xfrm_type->reject() const.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
73e5ebb2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
include/net/xfrm.h
include/net/xfrm.h
+2
-1
net/ipv6/mip6.c
net/ipv6/mip6.c
+2
-1
net/xfrm/xfrm_policy.c
net/xfrm/xfrm_policy.c
+1
-1
No files found.
include/net/xfrm.h
View file @
8f029de2
...
...
@@ -334,7 +334,8 @@ struct xfrm_type {
void
(
*
destructor
)(
struct
xfrm_state
*
);
int
(
*
input
)(
struct
xfrm_state
*
,
struct
sk_buff
*
skb
);
int
(
*
output
)(
struct
xfrm_state
*
,
struct
sk_buff
*
pskb
);
int
(
*
reject
)(
struct
xfrm_state
*
,
struct
sk_buff
*
,
struct
flowi
*
);
int
(
*
reject
)(
struct
xfrm_state
*
,
struct
sk_buff
*
,
const
struct
flowi
*
);
int
(
*
hdr_offset
)(
struct
xfrm_state
*
,
struct
sk_buff
*
,
u8
**
);
/* Estimate maximal size of result of transformation of a dgram */
u32
(
*
get_mtu
)(
struct
xfrm_state
*
,
int
size
);
...
...
net/ipv6/mip6.c
View file @
8f029de2
...
...
@@ -203,7 +203,8 @@ static inline int mip6_report_rl_allow(struct timeval *stamp,
return
allow
;
}
static
int
mip6_destopt_reject
(
struct
xfrm_state
*
x
,
struct
sk_buff
*
skb
,
struct
flowi
*
fl
)
static
int
mip6_destopt_reject
(
struct
xfrm_state
*
x
,
struct
sk_buff
*
skb
,
const
struct
flowi
*
fl
)
{
struct
net
*
net
=
xs_net
(
x
);
struct
inet6_skb_parm
*
opt
=
(
struct
inet6_skb_parm
*
)
skb
->
cb
;
...
...
net/xfrm/xfrm_policy.c
View file @
8f029de2
...
...
@@ -1907,7 +1907,7 @@ int xfrm_lookup(struct net *net, struct dst_entry **dst_p, struct flowi *fl,
EXPORT_SYMBOL
(
xfrm_lookup
);
static
inline
int
xfrm_secpath_reject
(
int
idx
,
struct
sk_buff
*
skb
,
struct
flowi
*
fl
)
xfrm_secpath_reject
(
int
idx
,
struct
sk_buff
*
skb
,
const
struct
flowi
*
fl
)
{
struct
xfrm_state
*
x
;
...
...
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