2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 14:25:41 +00:00

set SO_REUSEPORT only for multicast

This commit is contained in:
Francis Dupont
2013-09-25 10:22:43 +02:00
parent f6dc164f6b
commit eff1c7d831

View File

@@ -223,7 +223,7 @@ if_register_socket(struct interface_info *info, int family,
* DHCPv4 sockets; we can't yet support BSD sockets well, much
* less multiple sockets.
*/
if (local_family == AF_INET6) {
if ((local_family == AF_INET6) && *do_multicast) {
flag = 1;
if (setsockopt(sock, SOL_SOCKET, SO_REUSEPORT,
(char *)&flag, sizeof(flag)) < 0) {