• Home
  • Raw
  • Download

Lines Matching refs:t

60 	struct xfrm_state *t;  in ipcomp_tunnel_create()  local
62 t = xfrm_state_alloc(net); in ipcomp_tunnel_create()
63 if (!t) in ipcomp_tunnel_create()
66 t->id.proto = IPPROTO_IPIP; in ipcomp_tunnel_create()
67 t->id.spi = x->props.saddr.a4; in ipcomp_tunnel_create()
68 t->id.daddr.a4 = x->id.daddr.a4; in ipcomp_tunnel_create()
69 memcpy(&t->sel, &x->sel, sizeof(t->sel)); in ipcomp_tunnel_create()
70 t->props.family = AF_INET; in ipcomp_tunnel_create()
71 t->props.mode = x->props.mode; in ipcomp_tunnel_create()
72 t->props.saddr.a4 = x->props.saddr.a4; in ipcomp_tunnel_create()
73 t->props.flags = x->props.flags; in ipcomp_tunnel_create()
74 t->props.extra_flags = x->props.extra_flags; in ipcomp_tunnel_create()
75 memcpy(&t->mark, &x->mark, sizeof(t->mark)); in ipcomp_tunnel_create()
76 t->if_id = x->if_id; in ipcomp_tunnel_create()
78 if (xfrm_init_state(t)) in ipcomp_tunnel_create()
81 atomic_set(&t->tunnel_users, 1); in ipcomp_tunnel_create()
83 return t; in ipcomp_tunnel_create()
86 t->km.state = XFRM_STATE_DEAD; in ipcomp_tunnel_create()
87 xfrm_state_put(t); in ipcomp_tunnel_create()
88 t = NULL; in ipcomp_tunnel_create()
100 struct xfrm_state *t; in ipcomp_tunnel_attach() local
103 t = xfrm_state_lookup(net, mark, (xfrm_address_t *)&x->id.daddr.a4, in ipcomp_tunnel_attach()
105 if (!t) { in ipcomp_tunnel_attach()
106 t = ipcomp_tunnel_create(x); in ipcomp_tunnel_attach()
107 if (!t) { in ipcomp_tunnel_attach()
111 xfrm_state_insert(t); in ipcomp_tunnel_attach()
112 xfrm_state_hold(t); in ipcomp_tunnel_attach()
114 x->tunnel = t; in ipcomp_tunnel_attach()
115 atomic_inc(&t->tunnel_users); in ipcomp_tunnel_attach()