summaryrefslogtreecommitdiff
path: root/networking/udhcp
diff options
context:
space:
mode:
authorDenys Vlasenko2019-06-11 18:18:48 +0200
committerDenys Vlasenko2019-06-11 18:18:48 +0200
commit72f12acb6bc81f5150b7b3141f367840a8c0b9c2 (patch)
tree3ecc96bec7d05bae1ec73b601d88e83020c3af93 /networking/udhcp
parentd378fa170ac7c63b05b8bf06dbc7e262e5b52a3d (diff)
downloadbusybox-72f12acb6bc81f5150b7b3141f367840a8c0b9c2.zip
busybox-72f12acb6bc81f5150b7b3141f367840a8c0b9c2.tar.gz
udhcpc6: fix aliasing warning
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp')
-rw-r--r--networking/udhcp/d6_dhcpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c
index 422b888..4eb7ae1 100644
--- a/networking/udhcp/d6_dhcpc.c
+++ b/networking/udhcp/d6_dhcpc.c
@@ -643,7 +643,7 @@ static NOINLINE int send_d6_discover(uint32_t xid, struct in6_addr *requested_ip
client6_data.ia_na = xzalloc(len);
client6_data.ia_na->code = D6_OPT_IA_NA;
client6_data.ia_na->len = len - 4;
- *(uint32_t*)client6_data.ia_na->data = rand(); /* IAID */
+ *(bb__aliased_uint32_t*)client6_data.ia_na->data = rand(); /* IAID */
if (requested_ipv6) {
struct d6_option *iaaddr = (void*)(client6_data.ia_na->data + 4+4+4);
iaaddr->code = D6_OPT_IAADDR;
@@ -661,7 +661,7 @@ static NOINLINE int send_d6_discover(uint32_t xid, struct in6_addr *requested_ip
client6_data.ia_pd = xzalloc(len);
client6_data.ia_pd->code = D6_OPT_IA_PD;
client6_data.ia_pd->len = len - 4;
- *(uint32_t*)client6_data.ia_pd->data = rand(); /* IAID */
+ *(bb__aliased_uint32_t*)client6_data.ia_pd->data = rand(); /* IAID */
opt_ptr = mempcpy(opt_ptr, client6_data.ia_pd, len);
}