fixes multipath issue under mininet environment
Because the CMSG structure of sendmsg was not rightly
encoded. Too bad.
@@ -447,7 +447,7 @@ int picoquic_sendmsg(SOCKET_TYPE fd,
cmsg->cmsg_type = IP_PKTINFO;
cmsg->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo));
struct in_pktinfo* pktinfo = (struct in_pktinfo*)CMSG_DATA(cmsg);
- pktinfo->ipi_addr.s_addr = ((struct sockaddr_in*)addr_from)->sin_addr.s_addr;
+ pktinfo->ipi_spec_dst.s_addr = ((struct sockaddr_in*)addr_from)->sin_addr.s_addr;
pktinfo->ipi_ifindex = dest_if;
control_length += CMSG_SPACE(sizeof(struct in_pktinfo));
#else
