Lines Matching refs:txopts

800 	struct ipv6_txoptions *old = txopt_get(inet6_sk(sk)), *txopts;  in calipso_opt_update()  local
802 txopts = ipv6_renew_options(sk, old, IPV6_HOPOPTS, hop); in calipso_opt_update()
804 if (IS_ERR(txopts)) in calipso_opt_update()
805 return PTR_ERR(txopts); in calipso_opt_update()
807 txopts = ipv6_update_options(sk, txopts); in calipso_opt_update()
808 if (txopts) { in calipso_opt_update()
809 atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); in calipso_opt_update()
810 txopt_put(txopts); in calipso_opt_update()
1095 struct ipv6_txoptions *txopts = txopt_get(inet6_sk(sk)); in calipso_sock_getattr() local
1097 if (!txopts || !txopts->hopopt) in calipso_sock_getattr()
1100 hop = txopts->hopopt; in calipso_sock_getattr()
1124 txopt_put(txopts); in calipso_sock_getattr()
1148 struct ipv6_txoptions *txopts = txopt_get(inet6_sk(sk)); in calipso_sock_setattr() local
1151 if (txopts) in calipso_sock_setattr()
1152 old = txopts->hopopt; in calipso_sock_setattr()
1155 txopt_put(txopts); in calipso_sock_setattr()
1176 struct ipv6_txoptions *txopts = txopt_get(inet6_sk(sk)); in calipso_sock_delattr() local
1178 if (!txopts || !txopts->hopopt) in calipso_sock_delattr()
1181 if (calipso_opt_del(txopts->hopopt, &new_hop)) in calipso_sock_delattr()
1188 txopt_put(txopts); in calipso_sock_delattr()
1210 struct ipv6_txoptions *txopts; in calipso_req_setattr() local
1224 txopts = ipv6_renew_options(sk, req_inet->ipv6_opt, IPV6_HOPOPTS, new); in calipso_req_setattr()
1228 if (IS_ERR(txopts)) in calipso_req_setattr()
1229 return PTR_ERR(txopts); in calipso_req_setattr()
1231 txopts = xchg(&req_inet->ipv6_opt, txopts); in calipso_req_setattr()
1232 if (txopts) { in calipso_req_setattr()
1233 atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); in calipso_req_setattr()
1234 txopt_put(txopts); in calipso_req_setattr()
1252 struct ipv6_txoptions *txopts; in calipso_req_delattr() local
1261 txopts = ipv6_renew_options(sk, req_inet->ipv6_opt, IPV6_HOPOPTS, new); in calipso_req_delattr()
1263 if (!IS_ERR(txopts)) { in calipso_req_delattr()
1264 txopts = xchg(&req_inet->ipv6_opt, txopts); in calipso_req_delattr()
1265 if (txopts) { in calipso_req_delattr()
1266 atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); in calipso_req_delattr()
1267 txopt_put(txopts); in calipso_req_delattr()