Lines Matching refs:opt
76 struct ipv6_txoptions *opt;
92 opt = flowlabel ? flowlabel->opt : rcu_dereference(np->opt);
93 final_p = fl6_update_dst(&fl6, opt, &final);
624 struct inet6_skb_parm *opt = IP6CB(skb);
644 if (np->rxopt.bits.hopopts && (opt->flags & IP6SKB_HOPBYHOP)) {
649 if (opt->lastopt &&
663 while (off <= opt->lastopt) {
698 src_info.ipi6_ifindex = opt->iif;
706 if (np->rxopt.bits.ohopopts && (opt->flags & IP6SKB_HOPBYHOP)) {
710 if (np->rxopt.bits.odstopts && opt->dst0) {
711 u8 *ptr = nh + opt->dst0;
714 if (np->rxopt.bits.osrcrt && opt->srcrt) {
715 struct ipv6_rt_hdr *rthdr = (struct ipv6_rt_hdr *)(nh + opt->srcrt);
718 if (np->rxopt.bits.odstopts && opt->dst1) {
719 u8 *ptr = nh + opt->dst1;
739 opt->iif);
744 if (np->rxopt.bits.recvfragsize && opt->frag_max_size) {
745 int val = opt->frag_max_size;
767 struct ipv6_txoptions *opt = ipc6->opt;
865 if (opt->hopopt || cmsg->cmsg_len < CMSG_LEN(sizeof(struct ipv6_opt_hdr))) {
880 opt->opt_nflen += len;
881 opt->hopopt = hdr;
900 if (opt->dst1opt) {
904 opt->opt_flen += len;
905 opt->dst1opt = hdr;
926 opt->opt_flen += len;
927 opt->dst1opt = hdr;
929 opt->opt_nflen += len;
930 opt->dst0opt = hdr;
971 opt->opt_nflen += len;
972 opt->srcrt = rthdr;
974 if (cmsg->cmsg_type == IPV6_2292RTHDR && opt->dst1opt) {
975 int dsthdrlen = ((opt->dst1opt->hdrlen+1)<<3);
977 opt->opt_nflen += dsthdrlen;
978 opt->dst0opt = opt->dst1opt;
979 opt->dst1opt = NULL;
980 opt->opt_flen -= dsthdrlen;