Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-01-16 18:00:13 +0300
committerDenys Vlasenko <vda.linux@googlemail.com>2018-02-14 19:38:29 +0300
commit277636670c583720580c452e90b73cc2a5b0357e (patch)
tree2718d2a3ec576cfd22018d76fc8bcc1a80181daa
parent4e71661e3aabd04ae5bf6078bbc38f4940a2349c (diff)
udhcpc6: fix ipv6prefix[_lease] envvar value in script invocation
Based on a patch by DannyAAM <danny@saru.moe>. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/udhcp/d6_dhcpc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c
index 37ffd064d..65ff5deab 100644
--- a/networking/udhcp/d6_dhcpc.c
+++ b/networking/udhcp/d6_dhcpc.c
@@ -277,11 +277,11 @@ static void option_to_env(uint8_t *option, uint8_t *option_end)
* | |
* +-+-+-+-+-+-+-+-+
*/
- //move_from_unaligned32(v32, option + 4 + 4);
- //*new_env() = xasprintf("lease=%u", (unsigned)v32);
+ move_from_unaligned32(v32, option + 4 + 4);
+ *new_env() = xasprintf("ipv6prefix_lease=%u", (unsigned)v32);
- sprint_nip6(ipv6str, option + 4 + 4 + 1);
- *new_env() = xasprintf("ipv6prefix=%s/%u", ipv6str, (unsigned)(option[4 + 4]));
+ sprint_nip6(ipv6str, option + 4 + 4 + 4 + 1);
+ *new_env() = xasprintf("ipv6prefix=%s/%u", ipv6str, (unsigned)(option[4 + 4 + 4]));
break;
#if ENABLE_FEATURE_UDHCPC6_RFC3646
case D6_OPT_DNS_SERVERS: {