Lines Matching refs:txopts

786 	struct ipv6_txoptions *old = txopt_get(inet6_sk(sk)), *txopts;  in calipso_opt_update()  local
788 txopts = ipv6_renew_options(sk, old, IPV6_HOPOPTS, hop); in calipso_opt_update()
790 if (IS_ERR(txopts)) in calipso_opt_update()
791 return PTR_ERR(txopts); in calipso_opt_update()
793 txopts = ipv6_update_options(sk, txopts); in calipso_opt_update()
794 if (txopts) { in calipso_opt_update()
795 atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); in calipso_opt_update()
796 txopt_put(txopts); in calipso_opt_update()
1081 struct ipv6_txoptions *txopts = txopt_get(inet6_sk(sk)); in calipso_sock_getattr() local
1083 if (!txopts || !txopts->hopopt) in calipso_sock_getattr()
1086 hop = txopts->hopopt; in calipso_sock_getattr()
1110 txopt_put(txopts); in calipso_sock_getattr()
1134 struct ipv6_txoptions *txopts = txopt_get(inet6_sk(sk)); in calipso_sock_setattr() local
1137 if (txopts) in calipso_sock_setattr()
1138 old = txopts->hopopt; in calipso_sock_setattr()
1141 txopt_put(txopts); in calipso_sock_setattr()
1162 struct ipv6_txoptions *txopts = txopt_get(inet6_sk(sk)); in calipso_sock_delattr() local
1164 if (!txopts || !txopts->hopopt) in calipso_sock_delattr()
1167 if (calipso_opt_del(txopts->hopopt, &new_hop)) in calipso_sock_delattr()
1174 txopt_put(txopts); in calipso_sock_delattr()
1196 struct ipv6_txoptions *txopts; in calipso_req_setattr() local
1210 txopts = ipv6_renew_options(sk, req_inet->ipv6_opt, IPV6_HOPOPTS, new); in calipso_req_setattr()
1214 if (IS_ERR(txopts)) in calipso_req_setattr()
1215 return PTR_ERR(txopts); in calipso_req_setattr()
1217 txopts = xchg(&req_inet->ipv6_opt, txopts); in calipso_req_setattr()
1218 if (txopts) { in calipso_req_setattr()
1219 atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); in calipso_req_setattr()
1220 txopt_put(txopts); in calipso_req_setattr()
1238 struct ipv6_txoptions *txopts; in calipso_req_delattr() local
1247 txopts = ipv6_renew_options(sk, req_inet->ipv6_opt, IPV6_HOPOPTS, new); in calipso_req_delattr()
1249 if (!IS_ERR(txopts)) { in calipso_req_delattr()
1250 txopts = xchg(&req_inet->ipv6_opt, txopts); in calipso_req_delattr()
1251 if (txopts) { in calipso_req_delattr()
1252 atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); in calipso_req_delattr()
1253 txopt_put(txopts); in calipso_req_delattr()