Lines Matching refs:tot_len
718 opt2 = sock_kmalloc(sk, opt->tot_len, GFP_ATOMIC); in ipv6_dup_options()
721 memcpy(opt2, opt, opt->tot_len); in ipv6_dup_options()
766 int tot_len = 0; in ipv6_renew_options() local
773 tot_len += CMSG_ALIGN(ipv6_optlen(opt->hopopt)); in ipv6_renew_options()
775 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst0opt)); in ipv6_renew_options()
777 tot_len += CMSG_ALIGN(ipv6_optlen(opt->srcrt)); in ipv6_renew_options()
779 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst1opt)); in ipv6_renew_options()
783 tot_len += CMSG_ALIGN(newoptlen); in ipv6_renew_options()
785 if (!tot_len) in ipv6_renew_options()
788 tot_len += sizeof(*opt2); in ipv6_renew_options()
789 opt2 = sock_kmalloc(sk, tot_len, GFP_ATOMIC); in ipv6_renew_options()
793 memset(opt2, 0, tot_len); in ipv6_renew_options()
795 opt2->tot_len = tot_len; in ipv6_renew_options()
829 sock_kfree_s(sk, opt2, opt2->tot_len); in ipv6_renew_options()