Home
last modified time | relevance | path

Searched refs:xc (Results 1 – 2 of 2) sorted by relevance

/net/xfrm/
Dxfrm_state.c1475 struct xfrm_state *xc; in xfrm_state_migrate() local
1477 xc = xfrm_state_clone(x, encap); in xfrm_state_migrate()
1478 if (!xc) in xfrm_state_migrate()
1481 memcpy(&xc->id.daddr, &m->new_daddr, sizeof(xc->id.daddr)); in xfrm_state_migrate()
1482 memcpy(&xc->props.saddr, &m->new_saddr, sizeof(xc->props.saddr)); in xfrm_state_migrate()
1488 xfrm_state_insert(xc); in xfrm_state_migrate()
1490 if (xfrm_state_add(xc) < 0) in xfrm_state_migrate()
1494 return xc; in xfrm_state_migrate()
1496 xfrm_state_put(xc); in xfrm_state_migrate()
Dxfrm_policy.c3192 struct xfrm_state *x, *xc; in xfrm_migrate() local
3217 xc = xfrm_state_migrate(x, mp, encap); in xfrm_migrate()
3218 if (xc) { in xfrm_migrate()
3219 x_new[nx_new] = xc; in xfrm_migrate()