--- a/src/dhcp.c 2026-11-08 22:46:34.526013879 +0300 +++ b/src/dhcp.c 2026-11-08 22:46:34.581419834 +0300 @@ -527,6 +527,17 @@ my_syslog(MS_DHCP | LOG_WARNING, _("Error sending DHCP packet to %s: %s"), daemon->addrbuff, strerror(errno)); } + +#ifdef HAVE_SOLARIS_NETWORK + /* The DHCP socket is shared by all interfaces. Leaving IP_BOUND_IF set + makes the kernel deliver only broadcasts arriving on this interface + to the socket, so DHCPDISCOVERs on every other interface are dropped + (counted as udpNoPorts) until the next reply happens to go out there. */ + { + int zero = 0; + setsockopt(fd, IPPROTO_IP, IP_BOUND_IF, &zero, sizeof(zero)); + } +#endif } /* check against secondary interface addresses */