Lines Matching refs:msg_size

432 	size_t msg_size = sizeof(struct dhcpv6_msg_hdr);  in dhcpv6_calculate_message_size()  local
436 msg_size += DHCPV6_OPTION_HEADER_SIZE; in dhcpv6_calculate_message_size()
437 msg_size += sizeof(struct net_dhcpv6_duid_storage); in dhcpv6_calculate_message_size()
441 msg_size += DHCPV6_OPTION_HEADER_SIZE; in dhcpv6_calculate_message_size()
442 msg_size += sizeof(struct net_dhcpv6_duid_storage); in dhcpv6_calculate_message_size()
446 msg_size += DHCPV6_OPTION_HEADER_SIZE; in dhcpv6_calculate_message_size()
447 msg_size += DHCPV6_OPTION_ELAPSED_TIME_SIZE; in dhcpv6_calculate_message_size()
451 msg_size += DHCPV6_OPTION_HEADER_SIZE; in dhcpv6_calculate_message_size()
452 msg_size += DHCPV6_OPTION_IA_NA_HEADER_SIZE; in dhcpv6_calculate_message_size()
456 msg_size += DHCPV6_OPTION_HEADER_SIZE; in dhcpv6_calculate_message_size()
457 msg_size += DHCPV6_OPTION_IAADDR_HEADER_SIZE; in dhcpv6_calculate_message_size()
461 msg_size += DHCPV6_OPTION_HEADER_SIZE; in dhcpv6_calculate_message_size()
462 msg_size += DHCPV6_OPTION_IA_PD_HEADER_SIZE; in dhcpv6_calculate_message_size()
466 msg_size += DHCPV6_OPTION_HEADER_SIZE; in dhcpv6_calculate_message_size()
467 msg_size += DHCPV6_OPTION_IAPREFIX_HEADER_SIZE; in dhcpv6_calculate_message_size()
479 msg_size += DHCPV6_OPTION_HEADER_SIZE; in dhcpv6_calculate_message_size()
480 msg_size += oro_cnt * sizeof(uint16_t); in dhcpv6_calculate_message_size()
483 return msg_size; in dhcpv6_calculate_message_size()
576 size_t msg_size; in dhcpv6_create_message() local
584 msg_size = dhcpv6_calculate_message_size(options); in dhcpv6_create_message()
586 pkt = net_pkt_alloc_with_buffer(iface, msg_size, AF_INET6, in dhcpv6_create_message()