diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-10-04 09:10:03 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-10-04 09:10:03 +0200 |
commit | 4a7d1acb59e5425f019f7c66c50260383d93a219 (patch) | |
tree | efa833eb10f44a1e39925155202df618934a4b37 | |
parent | 9d950241cde19f706ccf81ae2da8be29bb513066 (diff) | |
download | fastd-4a7d1acb59e5425f019f7c66c50260383d93a219.tar fastd-4a7d1acb59e5425f019f7c66c50260383d93a219.zip |
Fix source address choice for IPv4 on Linux
-rw-r--r-- | src/send.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |