[PATCH] libbb: send_to_from with mixed ip/ipv6 addresses

Imu Li i at imu.li
Thu Sep 18 09:18:53 UTC 2014


When a server is recieves a datagram to an IPv4 address by an IPv6
socket, the destination address is supplied as an in_pktinfo, not an
in6_pktinfo. This allows that to be supplied as a source address in a
reply.

This fixes a bug in ntpd, where if the system has multiple addresses,
queries to secondary addresses have the wrong source address in their
response.
---
 libbb/udp_io.c | 4 ++++
 1 file changed, 4 insertions(+)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libbb-send_to_from-with-mixed-ip-ipv6-addresses.patch
Type: text/x-patch
Size: 556 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20140918/8205ff14/attachment.bin>


More information about the busybox mailing list