Lines Matching refs:txopts

782 	struct ipv6_txoptions *old = txopt_get(inet6_sk(sk)), *txopts;  in calipso_opt_update()  local
784 txopts = ipv6_renew_options(sk, old, IPV6_HOPOPTS, hop); in calipso_opt_update()
786 if (IS_ERR(txopts)) in calipso_opt_update()
787 return PTR_ERR(txopts); in calipso_opt_update()
789 txopts = ipv6_update_options(sk, txopts); in calipso_opt_update()
790 if (txopts) { in calipso_opt_update()
791 atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); in calipso_opt_update()
792 txopt_put(txopts); in calipso_opt_update()
1078 struct ipv6_txoptions *txopts = txopt_get(inet6_sk(sk)); in calipso_sock_getattr() local
1080 if (!txopts || !txopts->hopopt) in calipso_sock_getattr()
1083 hop = txopts->hopopt; in calipso_sock_getattr()
1107 txopt_put(txopts); in calipso_sock_getattr()
1131 struct ipv6_txoptions *txopts = txopt_get(inet6_sk(sk)); in calipso_sock_setattr() local
1134 if (txopts) in calipso_sock_setattr()
1135 old = txopts->hopopt; in calipso_sock_setattr()
1138 txopt_put(txopts); in calipso_sock_setattr()
1159 struct ipv6_txoptions *txopts = txopt_get(inet6_sk(sk)); in calipso_sock_delattr() local
1161 if (!txopts || !txopts->hopopt) in calipso_sock_delattr()
1164 if (calipso_opt_del(txopts->hopopt, &new_hop)) in calipso_sock_delattr()
1171 txopt_put(txopts); in calipso_sock_delattr()
1193 struct ipv6_txoptions *txopts; in calipso_req_setattr() local
1207 txopts = ipv6_renew_options(sk, req_inet->ipv6_opt, IPV6_HOPOPTS, new); in calipso_req_setattr()
1211 if (IS_ERR(txopts)) in calipso_req_setattr()
1212 return PTR_ERR(txopts); in calipso_req_setattr()
1214 txopts = xchg(&req_inet->ipv6_opt, txopts); in calipso_req_setattr()
1215 if (txopts) { in calipso_req_setattr()
1216 atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); in calipso_req_setattr()
1217 txopt_put(txopts); in calipso_req_setattr()
1235 struct ipv6_txoptions *txopts; in calipso_req_delattr() local
1244 txopts = ipv6_renew_options(sk, req_inet->ipv6_opt, IPV6_HOPOPTS, new); in calipso_req_delattr()
1246 if (!IS_ERR(txopts)) { in calipso_req_delattr()
1247 txopts = xchg(&req_inet->ipv6_opt, txopts); in calipso_req_delattr()
1248 if (txopts) { in calipso_req_delattr()
1249 atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); in calipso_req_delattr()
1250 txopt_put(txopts); in calipso_req_delattr()