summaryrefslogtreecommitdiffstats
path: root/src/send.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-10-04 09:10:03 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-10-04 09:10:03 +0200
commit4a7d1acb59e5425f019f7c66c50260383d93a219 (patch)
treeefa833eb10f44a1e39925155202df618934a4b37 /src/send.c
parent9d950241cde19f706ccf81ae2da8be29bb513066 (diff)
downloadfastd-4a7d1acb59e5425f019f7c66c50260383d93a219.tar
fastd-4a7d1acb59e5425f019f7c66c50260383d93a219.zip
Fix source address choice for IPv4 on Linux
Diffstat (limited to 'src/send.c')
-rw-r--r--src/send.c2
1 files changed, 1 insertions, 1 deletions
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