From: Guus Sliepen Date: Tue, 13 Nov 2012 14:05:41 +0000 (+0100) Subject: Send broadcast packets using a random socket, and properly support IPv6. X-Git-Tag: release-1.0.20~10 X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=0eceee6a66b28535a9c44d282e07a5825c7a1f04;hp=0eceee6a66b28535a9c44d282e07a5825c7a1f04 Send broadcast packets using a random socket, and properly support IPv6. Before it would always use the first socket, and always send an IPv4 broadcast packet. That works fine in a lot of situations, but it is better to try all sockets, and to send IPv6 packets on IPv6 sockets. This is especially important for users that are on IPv6-only networks or that have multiple physical network interfaces, although in the latter case it probably requires them to use the ListenAddress variable to create a separate socket for each interface. Conflicts: src/net_packet.c ---