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