ports/net/dhcp6/files/patch-dhcp6s.c
Kurt Jaeger ff3c4f36c1 net/dhcp6: several fixes
- rcorder incorrect (Circular dependency on provision `DAEMON')
- command_flags do not need to be referenced inside of the command_args
- dhcp6s exits because of shutdown on non-connected UDP socket

PR:		216673, 217452, 228994
Submitted by:	tdb, Andrey Pevnev <apevnev@me.com>, leres, Dries Michiels <driesm.michiels@gmail.com>
Approved by:	hrs (maintainer timeout)
Differential Revision:	D16994
2018-09-02 21:02:10 +00:00

11 lines
370 B
C

--- dhcp6s.c.orig 2018-09-02 19:43:29 UTC
+++ dhcp6s.c
@@ -527,7 +527,7 @@ server6_init()
strerror(errno));
exit(1);
}
-#if !defined(__linux__) && !defined(__sun__)
+#if !defined(__linux__) && !defined(__sun__) && !defined(__FreeBSD__)
/* make the socket write-only */
if (shutdown(outsock, 0)) {
d_printf(LOG_ERR, FNAME, "shutdown(outbound, 0): %s",