diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-22 20:59:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-22 20:59:59 -0500 |
commit | 8f029de281b26ec9fd5cd77294db1d35d9876f1a (patch) | |
tree | 221eca1314cf4a9920b06143b4d08d370ea63b19 /net | |
parent | 73e5ebb20f2809e2eb0b904448481e010c2599d7 (diff) |
xfrm: Mark flowi arg to xfrm_type->reject() const.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/mip6.c | 3 | ||||
-rw-r--r-- | net/xfrm/xfrm_policy.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv6/mip6.c b/net/ipv6/mip6.c index d6e9599d0705..f3e3ca938a54 100644 --- a/net/ipv6/mip6.c +++ b/net/ipv6/mip6.c | |||
@@ -203,7 +203,8 @@ static inline int mip6_report_rl_allow(struct timeval *stamp, | |||
203 | return allow; | 203 | return allow; |
204 | } | 204 | } |
205 | 205 | ||
206 | static int mip6_destopt_reject(struct xfrm_state *x, struct sk_buff *skb, struct flowi *fl) | 206 | static int mip6_destopt_reject(struct xfrm_state *x, struct sk_buff *skb, |
207 | const struct flowi *fl) | ||
207 | { | 208 | { |
208 | struct net *net = xs_net(x); | 209 | struct net *net = xs_net(x); |
209 | struct inet6_skb_parm *opt = (struct inet6_skb_parm *)skb->cb; | 210 | struct inet6_skb_parm *opt = (struct inet6_skb_parm *)skb->cb; |
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index fa0b7f33874b..ccd47cf1765c 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c | |||
@@ -1907,7 +1907,7 @@ int xfrm_lookup(struct net *net, struct dst_entry **dst_p, struct flowi *fl, | |||
1907 | EXPORT_SYMBOL(xfrm_lookup); | 1907 | EXPORT_SYMBOL(xfrm_lookup); |
1908 | 1908 | ||
1909 | static inline int | 1909 | static inline int |
1910 | xfrm_secpath_reject(int idx, struct sk_buff *skb, struct flowi *fl) | 1910 | xfrm_secpath_reject(int idx, struct sk_buff *skb, const struct flowi *fl) |
1911 | { | 1911 | { |
1912 | struct xfrm_state *x; | 1912 | struct xfrm_state *x; |
1913 | 1913 | ||