aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/xfrm6_policy.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/xfrm6_policy.c')
-rw-r--r--net/ipv6/xfrm6_policy.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/ipv6/xfrm6_policy.c b/net/ipv6/xfrm6_policy.c
index 5b02f0efd38e..bc508d0a87d5 100644
--- a/net/ipv6/xfrm6_policy.c
+++ b/net/ipv6/xfrm6_policy.c
@@ -188,6 +188,10 @@ __xfrm6_bundle_create(struct xfrm_policy *policy, struct xfrm_state **xfrm, int
188 188
189 dst_prev->child = &rt->u.dst; 189 dst_prev->child = &rt->u.dst;
190 dst->path = &rt->u.dst; 190 dst->path = &rt->u.dst;
191
192 /* Copy neighbour for reachability confirmation */
193 dst->neighbour = neigh_clone(rt->u.dst.neighbour);
194
191 if (rt->rt6i_node) 195 if (rt->rt6i_node)
192 ((struct xfrm_dst *)dst)->path_cookie = rt->rt6i_node->fn_sernum; 196 ((struct xfrm_dst *)dst)->path_cookie = rt->rt6i_node->fn_sernum;
193 197
@@ -210,8 +214,6 @@ __xfrm6_bundle_create(struct xfrm_policy *policy, struct xfrm_state **xfrm, int
210 dst_prev->trailer_len = trailer_len; 214 dst_prev->trailer_len = trailer_len;
211 memcpy(&dst_prev->metrics, &x->route->metrics, sizeof(dst_prev->metrics)); 215 memcpy(&dst_prev->metrics, &x->route->metrics, sizeof(dst_prev->metrics));
212 216
213 /* Copy neighbour for reachability confirmation */
214 dst_prev->neighbour = neigh_clone(rt->u.dst.neighbour);
215 dst_prev->input = rt->u.dst.input; 217 dst_prev->input = rt->u.dst.input;
216 dst_prev->output = dst_prev->xfrm->outer_mode->afinfo->output; 218 dst_prev->output = dst_prev->xfrm->outer_mode->afinfo->output;
217 /* Sheit... I remember I did this right. Apparently, 219 /* Sheit... I remember I did this right. Apparently,