Marius Tomaschewski
b6b28d718d
release, providing DHCPv6 client/server/relay implementation. The programs act in DHCPv6 mode, when the -6 start option is set. We install separate init scripts with a 6 at the end to handle them, that is /etc/init.d/dhcpd6 and dhrelay6. Further, there is also a link to the binaries with a 6 at the end, e.g. dhclient6, making it visible, that the installed version supports DHCPv6. - Moved additional documentation to a separate dhcp-doc package. - Changed to provide config files and scripts as source files instead of patches to the ISC scripts. - Adopted spec file and config/scripts, merged in all patches. - Implemented RFC 3442 classless static routes support in the dhclient-script (bnc#555870). OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=15
22 lines
583 B
Diff
22 lines
583 B
Diff
diff --git a/common/socket.c b/common/socket.c
|
|
index 036f7ae..6f56740 100644
|
|
--- a/common/socket.c
|
|
+++ b/common/socket.c
|
|
@@ -40,11 +40,16 @@
|
|
* I have implemented it under Linux; other systems should be doable also.
|
|
*/
|
|
|
|
+#ifndef _GNU_SOURCE
|
|
+#define _GNU_SOURCE
|
|
+#endif
|
|
#include "dhcpd.h"
|
|
#include <errno.h>
|
|
#include <sys/ioctl.h>
|
|
#include <sys/uio.h>
|
|
#include <sys/uio.h>
|
|
+#include <netinet/in.h> /* for struct in6_pktinfo, with glibc >= 2.10.1
|
|
+ _GNU_SOURCE required to enable it */
|
|
|
|
#ifdef USE_SOCKET_FALLBACK
|
|
# if !defined (USE_SOCKET_SEND)
|