summaryrefslogtreecommitdiff
path: root/net-misc/dhcp/files/dhcp-4.4.3-bindtodevice-inet6.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-15 01:47:28 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-10-15 01:47:28 +0100
commitf208e35deefe1ee6fe6722cec9ad8cc12e92e638 (patch)
treef63456d14b948e3a902ace235a9961865728faaf /net-misc/dhcp/files/dhcp-4.4.3-bindtodevice-inet6.patch
parent4392d53af7ce45ccfe6eb14146479ef0e2bd790a (diff)
gentoo auto-resync : 15:10:2022 - 01:47:28
Diffstat (limited to 'net-misc/dhcp/files/dhcp-4.4.3-bindtodevice-inet6.patch')
-rw-r--r--net-misc/dhcp/files/dhcp-4.4.3-bindtodevice-inet6.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/net-misc/dhcp/files/dhcp-4.4.3-bindtodevice-inet6.patch b/net-misc/dhcp/files/dhcp-4.4.3-bindtodevice-inet6.patch
new file mode 100644
index 000000000000..f6ea0f858c6d
--- /dev/null
+++ b/net-misc/dhcp/files/dhcp-4.4.3-bindtodevice-inet6.patch
@@ -0,0 +1,18 @@
+https://bugs.gentoo.org/471142
+
+snipped from fedora
+
+# dhclient -6: bind socket to interface (#1001742)
+# (Submitted to dhcp-bugs@isc.org - [ISC-Bugs #34784])
+
+--- a/common/socket.c
++++ b/common/socket.c
+@@ -266,7 +266,7 @@
+
+ #if defined(SO_BINDTODEVICE)
+ /* Bind this socket to this interface. */
+- if ((local_family != AF_INET6) && (info->ifp != NULL) &&
++ if (((do_multicast == 0)||(*do_multicast == 0)) && (info->ifp != NULL) &&
+ setsockopt(sock, SOL_SOCKET, SO_BINDTODEVICE,
+ (char *)(info -> ifp), sizeof(*(info -> ifp))) < 0) {
+ log_fatal("Can't set SO_BINDTODEVICE on dhcp socket for"