xfrm: Const'ify address arguments to ->dst_lookup()
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
200ce96e56
commit
5e6b930f21
3 changed files with 6 additions and 6 deletions
|
@ -267,8 +267,8 @@ struct xfrm_policy_afinfo {
|
||||||
struct dst_ops *dst_ops;
|
struct dst_ops *dst_ops;
|
||||||
void (*garbage_collect)(struct net *net);
|
void (*garbage_collect)(struct net *net);
|
||||||
struct dst_entry *(*dst_lookup)(struct net *net, int tos,
|
struct dst_entry *(*dst_lookup)(struct net *net, int tos,
|
||||||
xfrm_address_t *saddr,
|
const xfrm_address_t *saddr,
|
||||||
xfrm_address_t *daddr);
|
const xfrm_address_t *daddr);
|
||||||
int (*get_saddr)(struct net *net, xfrm_address_t *saddr, 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,
|
void (*decode_session)(struct sk_buff *skb,
|
||||||
struct flowi *fl,
|
struct flowi *fl,
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
static struct xfrm_policy_afinfo xfrm4_policy_afinfo;
|
static struct xfrm_policy_afinfo xfrm4_policy_afinfo;
|
||||||
|
|
||||||
static struct dst_entry *xfrm4_dst_lookup(struct net *net, int tos,
|
static struct dst_entry *xfrm4_dst_lookup(struct net *net, int tos,
|
||||||
xfrm_address_t *saddr,
|
const xfrm_address_t *saddr,
|
||||||
xfrm_address_t *daddr)
|
const xfrm_address_t *daddr)
|
||||||
{
|
{
|
||||||
struct flowi fl = {
|
struct flowi fl = {
|
||||||
.fl4_dst = daddr->a4,
|
.fl4_dst = daddr->a4,
|
||||||
|
|
|
@ -27,8 +27,8 @@
|
||||||
static struct xfrm_policy_afinfo xfrm6_policy_afinfo;
|
static struct xfrm_policy_afinfo xfrm6_policy_afinfo;
|
||||||
|
|
||||||
static struct dst_entry *xfrm6_dst_lookup(struct net *net, int tos,
|
static struct dst_entry *xfrm6_dst_lookup(struct net *net, int tos,
|
||||||
xfrm_address_t *saddr,
|
const xfrm_address_t *saddr,
|
||||||
xfrm_address_t *daddr)
|
const xfrm_address_t *daddr)
|
||||||
{
|
{
|
||||||
struct flowi fl = {};
|
struct flowi fl = {};
|
||||||
struct dst_entry *dst;
|
struct dst_entry *dst;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue