Commit 6890c8f3 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller

[XFRM_USER]: Rename confusing member of struct xfrm_usersa_id.

parent d601abb7
...@@ -164,7 +164,7 @@ struct xfrm_usersa_info { ...@@ -164,7 +164,7 @@ struct xfrm_usersa_info {
}; };
struct xfrm_usersa_id { struct xfrm_usersa_id {
xfrm_address_t saddr; xfrm_address_t daddr;
__u32 spi; __u32 spi;
__u16 family; __u16 family;
__u8 proto; __u8 proto;
......
...@@ -277,7 +277,7 @@ static int xfrm_del_sa(struct sk_buff *skb, struct nlmsghdr *nlh, void **xfrma) ...@@ -277,7 +277,7 @@ static int xfrm_del_sa(struct sk_buff *skb, struct nlmsghdr *nlh, void **xfrma)
struct xfrm_state *x; struct xfrm_state *x;
struct xfrm_usersa_id *p = NLMSG_DATA(nlh); struct xfrm_usersa_id *p = NLMSG_DATA(nlh);
x = xfrm_state_lookup(&p->saddr, p->spi, p->proto, p->family); x = xfrm_state_lookup(&p->daddr, p->spi, p->proto, p->family);
if (x == NULL) if (x == NULL)
return -ESRCH; return -ESRCH;
...@@ -403,7 +403,7 @@ static int xfrm_get_sa(struct sk_buff *skb, struct nlmsghdr *nlh, void **xfrma) ...@@ -403,7 +403,7 @@ static int xfrm_get_sa(struct sk_buff *skb, struct nlmsghdr *nlh, void **xfrma)
struct sk_buff *resp_skb; struct sk_buff *resp_skb;
int err; int err;
x = xfrm_state_lookup(&p->saddr, p->spi, p->proto, p->family); x = xfrm_state_lookup(&p->daddr, p->spi, p->proto, p->family);
err = -ESRCH; err = -ESRCH;
if (x == NULL) if (x == NULL)
goto out_noput; goto out_noput;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment