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
05d84025
Commit
05d84025
authored
Feb 22, 2011
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xfrm: Mark flowi arg to ->get_tos() const.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
e8a4e377
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
include/net/xfrm.h
include/net/xfrm.h
+1
-1
net/ipv4/xfrm4_policy.c
net/ipv4/xfrm4_policy.c
+1
-1
net/ipv6/xfrm6_policy.c
net/ipv6/xfrm6_policy.c
+1
-1
net/xfrm/xfrm_policy.c
net/xfrm/xfrm_policy.c
+1
-1
No files found.
include/net/xfrm.h
View file @
05d84025
...
...
@@ -273,7 +273,7 @@ struct xfrm_policy_afinfo {
void
(
*
decode_session
)(
struct
sk_buff
*
skb
,
struct
flowi
*
fl
,
int
reverse
);
int
(
*
get_tos
)(
struct
flowi
*
fl
);
int
(
*
get_tos
)(
const
struct
flowi
*
fl
);
int
(
*
init_path
)(
struct
xfrm_dst
*
path
,
struct
dst_entry
*
dst
,
int
nfheader_len
);
...
...
net/ipv4/xfrm4_policy.c
View file @
05d84025
...
...
@@ -56,7 +56,7 @@ static int xfrm4_get_saddr(struct net *net,
return
0
;
}
static
int
xfrm4_get_tos
(
struct
flowi
*
fl
)
static
int
xfrm4_get_tos
(
const
struct
flowi
*
fl
)
{
return
IPTOS_RT_MASK
&
fl
->
fl4_tos
;
/* Strip ECN bits */
}
...
...
net/ipv6/xfrm6_policy.c
View file @
05d84025
...
...
@@ -67,7 +67,7 @@ static int xfrm6_get_saddr(struct net *net,
return
0
;
}
static
int
xfrm6_get_tos
(
struct
flowi
*
fl
)
static
int
xfrm6_get_tos
(
const
struct
flowi
*
fl
)
{
return
0
;
}
...
...
net/xfrm/xfrm_policy.c
View file @
05d84025
...
...
@@ -1256,7 +1256,7 @@ xfrm_tmpl_resolve(struct xfrm_policy **pols, int npols, struct flowi *fl,
* still valid.
*/
static
inline
int
xfrm_get_tos
(
struct
flowi
*
fl
,
int
family
)
static
inline
int
xfrm_get_tos
(
const
struct
flowi
*
fl
,
int
family
)
{
struct
xfrm_policy_afinfo
*
afinfo
=
xfrm_policy_get_afinfo
(
family
);
int
tos
;
...
...
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