diff options
| author | Herbert Xu <herbert@gondor.apana.org.au> | 2003-05-31 09:20:58 -0700 |
|---|---|---|
| committer | David S. Miller <davem@nuts.ninka.net> | 2003-05-31 09:20:58 -0700 |
| commit | 6890c8f34c1eefc08a1ea1d61a58fefeccecbc43 (patch) | |
| tree | 29543c6a48b873e3754c7d145ff18674edaad8c9 | |
| parent | d601abb74dada679c744303abc235f5de27fd1b8 (diff) | |
[XFRM_USER]: Rename confusing member of struct xfrm_usersa_id.
| -rw-r--r-- | include/linux/xfrm.h | 2 | ||||
| -rw-r--r-- | net/xfrm/xfrm_user.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/xfrm.h b/include/linux/xfrm.h index 698c14b09f96..f4050d3e8306 100644 --- a/include/linux/xfrm.h +++ b/include/linux/xfrm.h @@ -164,7 +164,7 @@ struct xfrm_usersa_info { }; struct xfrm_usersa_id { - xfrm_address_t saddr; + xfrm_address_t daddr; __u32 spi; __u16 family; __u8 proto; diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 0d1a20264a18..f7609cfe3bec 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c @@ -277,7 +277,7 @@ static int xfrm_del_sa(struct sk_buff *skb, struct nlmsghdr *nlh, void **xfrma) struct xfrm_state *x; 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) return -ESRCH; @@ -403,7 +403,7 @@ static int xfrm_get_sa(struct sk_buff *skb, struct nlmsghdr *nlh, void **xfrma) struct sk_buff *resp_skb; 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; if (x == NULL) goto out_noput; |
