Lines Matching defs:opt

256 	     __u32 mark, struct ipv6_txoptions *opt, int tclass, u32 priority)
274 if (opt)
275 head_room += opt->opt_nflen + opt->opt_flen;
285 if (opt) {
286 seg_len += opt->opt_nflen + opt->opt_flen;
288 if (opt->opt_flen)
289 ipv6_push_frag_opts(skb, opt, &proto);
291 if (opt->opt_nflen)
292 ipv6_push_nfrag_opts(skb, opt, &proto, &first_hop,
494 struct inet6_skb_parm *opt = IP6CB(skb);
535 if (unlikely(opt->flags & IP6SKB_ROUTERALERT)) {
536 if (ip6_call_ra_chain(skb, ntohs(opt->ra)))
589 opt->srcrt == 0 && !skb_sec_path(skb)) {
1402 struct ipv6_txoptions *nopt, *opt = ipc6->opt;
1412 if (opt) {
1413 if (WARN_ON(v6_cork->opt))
1416 nopt = v6_cork->opt = kzalloc(sizeof(*opt), sk->sk_allocation);
1420 nopt->tot_len = sizeof(*opt);
1421 nopt->opt_flen = opt->opt_flen;
1422 nopt->opt_nflen = opt->opt_nflen;
1424 nopt->dst0opt = ip6_opt_dup(opt->dst0opt, sk->sk_allocation);
1425 if (opt->dst0opt && !nopt->dst0opt)
1428 nopt->dst1opt = ip6_opt_dup(opt->dst1opt, sk->sk_allocation);
1429 if (opt->dst1opt && !nopt->dst1opt)
1432 nopt->hopopt = ip6_opt_dup(opt->hopopt, sk->sk_allocation);
1433 if (opt->hopopt && !nopt->hopopt)
1436 nopt->srcrt = ip6_rthdr_dup(opt->srcrt, sk->sk_allocation);
1437 if (opt->srcrt && !nopt->srcrt)
1493 struct ipv6_txoptions *opt = v6_cork->opt;
1501 exthdrlen = opt ? opt->opt_flen : 0;
1516 (opt ? opt->opt_nflen : 0);
1519 (opt ? opt->opt_flen + opt->opt_nflen : 0) +
1893 exthdrlen = (ipc6->opt ? ipc6->opt->opt_flen : 0);
1918 if (v6_cork->opt) {
1919 struct ipv6_txoptions *opt = v6_cork->opt;
1921 kfree(opt->dst0opt);
1922 kfree(opt->dst1opt);
1923 kfree(opt->hopopt);
1924 kfree(opt->srcrt);
1925 kfree(opt);
1926 v6_cork->opt = NULL;
1947 struct ipv6_txoptions *opt = v6_cork->opt;
1976 if (opt && opt->opt_flen)
1977 ipv6_push_frag_opts(skb, opt, &proto);
1978 if (opt && opt->opt_nflen)
1979 ipv6_push_nfrag_opts(skb, opt, &proto, &final_dst, &fl6->saddr);
2080 int exthdrlen = (ipc6->opt ? ipc6->opt->opt_flen : 0);
2092 cork->base.opt = NULL;
2093 v6_cork.opt = NULL;