Lines Matching refs:tot_len
1237 opt2 = sock_kmalloc(sk, opt->tot_len, GFP_ATOMIC); in ipv6_dup_options()
1240 memcpy(opt2, opt, opt->tot_len); in ipv6_dup_options()
1296 int tot_len = 0; in ipv6_renew_options() local
1302 tot_len += CMSG_ALIGN(ipv6_optlen(opt->hopopt)); in ipv6_renew_options()
1304 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst0opt)); in ipv6_renew_options()
1306 tot_len += CMSG_ALIGN(ipv6_optlen(opt->srcrt)); in ipv6_renew_options()
1308 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst1opt)); in ipv6_renew_options()
1312 tot_len += CMSG_ALIGN(ipv6_optlen(newopt)); in ipv6_renew_options()
1314 if (!tot_len) in ipv6_renew_options()
1317 tot_len += sizeof(*opt2); in ipv6_renew_options()
1318 opt2 = sock_kmalloc(sk, tot_len, GFP_ATOMIC); in ipv6_renew_options()
1322 memset(opt2, 0, tot_len); in ipv6_renew_options()
1324 opt2->tot_len = tot_len; in ipv6_renew_options()