summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-11-19 06:59:09 +0100
committerGitHub <noreply@github.com>2022-11-19 06:59:09 +0100
commitcd6f8ab1040139d101189e7af789db5fdbaa9266 (patch)
treee8b648c06d14baf3f208d8ac976e9d8e596a8b63 /packages
parent594c99e012fd6626b5a3e28755f09808fc79bb46 (diff)
parentda47ffa55c49fd4bee82233f6adad26fbcca1755 (diff)
downloadvyos-build-cd6f8ab1040139d101189e7af789db5fdbaa9266.tar.gz
vyos-build-cd6f8ab1040139d101189e7af789db5fdbaa9266.zip
Merge pull request #273 from initramfs/current-dhcp6c-fix
wide-dhcpv6: T4760: fix support for multiple dhcp6c instances
Diffstat (limited to 'packages')
-rw-r--r--packages/wide-dhcpv6/patches/0024-bind-to-single-socket.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/wide-dhcpv6/patches/0024-bind-to-single-socket.patch b/packages/wide-dhcpv6/patches/0024-bind-to-single-socket.patch
new file mode 100644
index 00000000..b5751325
--- /dev/null
+++ b/packages/wide-dhcpv6/patches/0024-bind-to-single-socket.patch
@@ -0,0 +1,17 @@
+diff --git a/dhcp6c.c b/dhcp6c.c
+index 1caaaa5..04ce9c5 100644
+--- a/dhcp6c.c
++++ b/dhcp6c.c
+@@ -217,6 +217,12 @@ main(argc, argv)
+ argv[0]);
+ exit(1);
+ }
++
++ if (setsockopt(sock, SOL_SOCKET, SO_BINDTODEVICE, argv[0], strlen(argv[0])) != 0) {
++ debug_printf(LOG_ERR, FNAME, "failed to bind %s", argv[0]);
++ exit(1);
++ }
++
+ argv++;
+ }
+