From 4a7d1acb59e5425f019f7c66c50260383d93a219 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 4 Oct 2013 09:10:03 +0200 Subject: Fix source address choice for IPv4 on Linux --- src/send.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/send.c b/src/send.c index b1a6107..3de2e12 100644 --- a/src/send.c +++ b/src/send.c @@ -44,7 +44,7 @@ static inline void add_pktinfo(struct msghdr *msg, const fastd_peer_address_t *l msg->msg_controllen += cmsg->cmsg_len; struct in_pktinfo *pktinfo = (struct in_pktinfo*)CMSG_DATA(cmsg); - pktinfo->ipi_addr = local_addr->in.sin_addr; + pktinfo->ipi_spec_dst = local_addr->in.sin_addr; return; } #endif -- cgit v1.2.3