|
@@ -489,7 +489,8 @@ struct flowi;
|
|
|
#ifndef CONFIG_XFRM
|
|
|
static inline struct dst_entry *xfrm_lookup(struct net *net,
|
|
|
struct dst_entry *dst_orig,
|
|
|
- const struct flowi *fl, struct sock *sk,
|
|
|
+ const struct flowi *fl,
|
|
|
+ const struct sock *sk,
|
|
|
int flags)
|
|
|
{
|
|
|
return dst_orig;
|
|
@@ -498,7 +499,7 @@ static inline struct dst_entry *xfrm_lookup(struct net *net,
|
|
|
static inline struct dst_entry *xfrm_lookup_route(struct net *net,
|
|
|
struct dst_entry *dst_orig,
|
|
|
const struct flowi *fl,
|
|
|
- struct sock *sk,
|
|
|
+ const struct sock *sk,
|
|
|
int flags)
|
|
|
{
|
|
|
return dst_orig;
|
|
@@ -511,11 +512,11 @@ static inline struct xfrm_state *dst_xfrm(const struct dst_entry *dst)
|
|
|
|
|
|
#else
|
|
|
struct dst_entry *xfrm_lookup(struct net *net, struct dst_entry *dst_orig,
|
|
|
- const struct flowi *fl, struct sock *sk,
|
|
|
+ const struct flowi *fl, const struct sock *sk,
|
|
|
int flags);
|
|
|
|
|
|
struct dst_entry *xfrm_lookup_route(struct net *net, struct dst_entry *dst_orig,
|
|
|
- const struct flowi *fl, struct sock *sk,
|
|
|
+ const struct flowi *fl, const struct sock *sk,
|
|
|
int flags);
|
|
|
|
|
|
/* skb attached with this dst needs transformation if dst->xfrm is valid */
|