diff options
Diffstat (limited to 'net/ipv6/xfrm6_state.c')
-rw-r--r-- | net/ipv6/xfrm6_state.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/ipv6/xfrm6_state.c b/net/ipv6/xfrm6_state.c index 3fc970135fc6..8a1f9c0d2a13 100644 --- a/net/ipv6/xfrm6_state.c +++ b/net/ipv6/xfrm6_state.c | |||
@@ -3,11 +3,11 @@ | |||
3 | * | 3 | * |
4 | * Authors: | 4 | * Authors: |
5 | * Mitsuru KANDA @USAGI | 5 | * Mitsuru KANDA @USAGI |
6 | * Kazunori MIYAZAWA @USAGI | 6 | * Kazunori MIYAZAWA @USAGI |
7 | * Kunihiro Ishiguro <kunihiro@ipinfusion.com> | 7 | * Kunihiro Ishiguro <kunihiro@ipinfusion.com> |
8 | * IPv6 support | 8 | * IPv6 support |
9 | * YOSHIFUJI Hideaki @USAGI | 9 | * YOSHIFUJI Hideaki @USAGI |
10 | * Split up af-specific portion | 10 | * Split up af-specific portion |
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | 13 | ||
@@ -45,10 +45,10 @@ xfrm6_init_temprop(struct xfrm_state *x, const struct xfrm_tmpl *tmpl, | |||
45 | const xfrm_address_t *daddr, const xfrm_address_t *saddr) | 45 | const xfrm_address_t *daddr, const xfrm_address_t *saddr) |
46 | { | 46 | { |
47 | x->id = tmpl->id; | 47 | x->id = tmpl->id; |
48 | if (ipv6_addr_any((struct in6_addr*)&x->id.daddr)) | 48 | if (ipv6_addr_any((struct in6_addr *)&x->id.daddr)) |
49 | memcpy(&x->id.daddr, daddr, sizeof(x->sel.daddr)); | 49 | memcpy(&x->id.daddr, daddr, sizeof(x->sel.daddr)); |
50 | memcpy(&x->props.saddr, &tmpl->saddr, sizeof(x->props.saddr)); | 50 | memcpy(&x->props.saddr, &tmpl->saddr, sizeof(x->props.saddr)); |
51 | if (ipv6_addr_any((struct in6_addr*)&x->props.saddr)) | 51 | if (ipv6_addr_any((struct in6_addr *)&x->props.saddr)) |
52 | memcpy(&x->props.saddr, saddr, sizeof(x->props.saddr)); | 52 | memcpy(&x->props.saddr, saddr, sizeof(x->props.saddr)); |
53 | x->props.mode = tmpl->mode; | 53 | x->props.mode = tmpl->mode; |
54 | x->props.reqid = tmpl->reqid; | 54 | x->props.reqid = tmpl->reqid; |