mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
8d850ed6c5
print/hplip: - Add LICENSE details - Changes USE_OPENSSL=yes to USES=ssl - Create empty directories for pkg-plist @dir entries - Reformat patches with makepatch (pet portlint) - Move ${PREFIX}/etc/sane.d/dll.conf to ${PREFIX}/etc/sane.d/dll.d/hpaio during post-install, rather than editing ${PREFIX}/etc/sane.d/dll.conf during @exec and @unexec during pkg-plist print/hplip-plugin: - Re-order LICENSE block (pet portlint) Changes this release: http://hplipopensource.com/hplip-web/release_notes.html Reviewed by: mat (mentor) Approved by: makc (maintainer timeout), adamw (mentor) Differential Revision: https://reviews.freebsd.org/D7812
28 lines
816 B
C
28 lines
816 B
C
--- protocol/discovery/mdns.c.orig 2016-08-26 10:04:47 UTC
|
|
+++ protocol/discovery/mdns.c
|
|
@@ -24,7 +24,11 @@
|
|
Author: Sanjay Kumar
|
|
\*****************************************************************************/
|
|
|
|
-//#include <stdio.h>
|
|
+#include <ctype.h>
|
|
+#include <stdio.h>
|
|
+#include <stdlib.h>
|
|
+#include <unistd.h>
|
|
+#include <sys/select.h>
|
|
#include <string.h>
|
|
#include <syslog.h>
|
|
#include <sys/socket.h>
|
|
@@ -89,6 +93,11 @@ static int mdns_open_socket(int *psocket
|
|
BUG("unable to setsockopt: %m\n");
|
|
goto bugout;
|
|
}
|
|
+ if (setsockopt(udp_socket, SOL_SOCKET, SO_REUSEPORT, &yes, sizeof(yes)) == -1)
|
|
+ {
|
|
+ BUG("unable to setsockopt: %m\n");
|
|
+ goto bugout;
|
|
+ }
|
|
|
|
/* Bind the socket to port and IP equal to INADDR_ANY. */
|
|
bzero(&recv_addr, sizeof(recv_addr));
|