diff options
author | Daniil Baturin <daniil@vyos.io> | 2023-12-21 16:10:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-21 16:10:00 +0000 |
commit | 8073d93558df0462ba64000078c988646e6fb397 (patch) | |
tree | a5e045f971cb4318f474e46ae7cc44819cadf9d9 | |
parent | 948408178128d7d691b297b7eb110292ed49f602 (diff) | |
parent | f8229007f0cb39185f8ddb2c5d34079b75c6e1af (diff) | |
download | vyos-build-8073d93558df0462ba64000078c988646e6fb397.tar.gz vyos-build-8073d93558df0462ba64000078c988646e6fb397.zip |
Merge pull request #274 from initramfs/equuleus-dhcp6c-fix
backport: wide-dhcpv6: T4760: fix support for multiple dhcp6c instances
-rw-r--r-- | packages/wide-dhcpv6/patches/0024-bind-to-single-socket.patch | 17 |
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++; + } + |