void dhcpv6_init_header(struct dhcpv6_packet *packet, uint8_t type)
{
	int id;
	uint64_t rand;

	memset(packet, 0, sizeof(*packet));

	packet->message = type;

	__connman_util_get_random(&rand);
	id = rand;

	packet->transaction_id[0] = (id >> 16) & 0xff;
	packet->transaction_id[1] = (id >> 8) & 0xff;
	packet->transaction_id[2] = id & 0xff;
}
void dhcpv6_init_header(struct dhcpv6_packet *packet, uint8_t type)
{
	int id;
	uint64_t rand;

	memset(packet, 0, sizeof(*packet));

	packet->message = type;

	__connman_util_get_random(&rand);
	id = rand;

	packet->transaction_id[0] = (id >> 16) & 0xff;
	packet->transaction_id[1] = (id >> 8) & 0xff;
	packet->transaction_id[2] = id & 0xff;
}