Lines Matching defs:opt

264 	     __u32 mark, struct ipv6_txoptions *opt, int tclass, u32 priority)
282 if (opt)
283 head_room += opt->opt_nflen + opt->opt_flen;
293 if (opt) {
294 seg_len += opt->opt_nflen + opt->opt_flen;
296 if (opt->opt_flen)
297 ipv6_push_frag_opts(skb, opt, &proto);
299 if (opt->opt_nflen)
300 ipv6_push_nfrag_opts(skb, opt, &proto, &first_hop,
497 struct inet6_skb_parm *opt = IP6CB(skb);
538 if (unlikely(opt->flags & IP6SKB_ROUTERALERT)) {
539 if (ip6_call_ra_chain(skb, ntohs(opt->ra)))
592 opt->srcrt == 0 && !skb_sec_path(skb)) {
1338 struct ipv6_txoptions *nopt, *opt = ipc6->opt;
1348 if (opt) {
1349 if (WARN_ON(v6_cork->opt))
1352 nopt = v6_cork->opt = kzalloc(sizeof(*opt), sk->sk_allocation);
1356 nopt->tot_len = sizeof(*opt);
1357 nopt->opt_flen = opt->opt_flen;
1358 nopt->opt_nflen = opt->opt_nflen;
1360 nopt->dst0opt = ip6_opt_dup(opt->dst0opt, sk->sk_allocation);
1361 if (opt->dst0opt && !nopt->dst0opt)
1364 nopt->dst1opt = ip6_opt_dup(opt->dst1opt, sk->sk_allocation);
1365 if (opt->dst1opt && !nopt->dst1opt)
1368 nopt->hopopt = ip6_opt_dup(opt->hopopt, sk->sk_allocation);
1369 if (opt->hopopt && !nopt->hopopt)
1372 nopt->srcrt = ip6_rthdr_dup(opt->srcrt, sk->sk_allocation);
1373 if (opt->srcrt && !nopt->srcrt)
1428 struct ipv6_txoptions *opt = v6_cork->opt;
1435 exthdrlen = opt ? opt->opt_flen : 0;
1446 (opt ? opt->opt_nflen : 0);
1449 (opt ? opt->opt_flen + opt->opt_nflen : 0) +
1828 exthdrlen = (ipc6->opt ? ipc6->opt->opt_flen : 0);
1852 if (v6_cork->opt) {
1853 struct ipv6_txoptions *opt = v6_cork->opt;
1855 kfree(opt->dst0opt);
1856 kfree(opt->dst1opt);
1857 kfree(opt->hopopt);
1858 kfree(opt->srcrt);
1859 kfree(opt);
1860 v6_cork->opt = NULL;
1879 struct ipv6_txoptions *opt = v6_cork->opt;
1908 if (opt && opt->opt_flen)
1909 ipv6_push_frag_opts(skb, opt, &proto);
1910 if (opt && opt->opt_nflen)
1911 ipv6_push_nfrag_opts(skb, opt, &proto, &final_dst, &fl6->saddr);
2012 int exthdrlen = (ipc6->opt ? ipc6->opt->opt_flen : 0);
2024 cork->base.opt = NULL;
2025 v6_cork.opt = NULL;