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()
1082 struct ipv6_txoptions *txopts = txopt_get(inet6_sk(sk)); in calipso_sock_getattr() local
1084 if (!txopts || !txopts->hopopt) in calipso_sock_getattr()
1087 hop = txopts->hopopt; in calipso_sock_getattr()
1111 txopt_put(txopts); in calipso_sock_getattr()
1135 struct ipv6_txoptions *txopts = txopt_get(inet6_sk(sk)); in calipso_sock_setattr() local
1138 if (txopts) in calipso_sock_setattr()
1139 old = txopts->hopopt; in calipso_sock_setattr()
1142 txopt_put(txopts); in calipso_sock_setattr()
1163 struct ipv6_txoptions *txopts = txopt_get(inet6_sk(sk)); in calipso_sock_delattr() local
1165 if (!txopts || !txopts->hopopt) in calipso_sock_delattr()
1168 if (calipso_opt_del(txopts->hopopt, &new_hop)) in calipso_sock_delattr()
1175 txopt_put(txopts); in calipso_sock_delattr()
1197 struct ipv6_txoptions *txopts; in calipso_req_setattr() local
1211 txopts = ipv6_renew_options(sk, req_inet->ipv6_opt, IPV6_HOPOPTS, new); in calipso_req_setattr()
1215 if (IS_ERR(txopts)) in calipso_req_setattr()
1216 return PTR_ERR(txopts); in calipso_req_setattr()
1218 txopts = xchg(&req_inet->ipv6_opt, txopts); in calipso_req_setattr()
1219 if (txopts) { in calipso_req_setattr()
1220 atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); in calipso_req_setattr()
1221 txopt_put(txopts); in calipso_req_setattr()
1239 struct ipv6_txoptions *txopts; in calipso_req_delattr() local
1248 txopts = ipv6_renew_options(sk, req_inet->ipv6_opt, IPV6_HOPOPTS, new); in calipso_req_delattr()
1250 if (!IS_ERR(txopts)) { in calipso_req_delattr()
1251 txopts = xchg(&req_inet->ipv6_opt, txopts); in calipso_req_delattr()
1252 if (txopts) { in calipso_req_delattr()
1253 atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); in calipso_req_delattr()
1254 txopt_put(txopts); in calipso_req_delattr()