X-Git-Url: https://git.decadent.org.uk/gitweb/?p=odhcp6c.git;a=blobdiff_plain;f=src%2Fdhcpv6.c;fp=src%2Fdhcpv6.c;h=8a1231df1245adc1e057b5589818b93be9a9e99b;hp=e27d8995a40102a5446816334fb3e3843819e311;hb=687b3c65c0460dd8c4ba7e63e3ae0ab20836e6e8;hpb=8a8005f7ca8973702b36e711993bfff89ca9600c diff --git a/src/dhcpv6.c b/src/dhcpv6.c index e27d899..8a1231d 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -577,7 +577,9 @@ int dhcpv6_request(enum dhcpv6_msg type) // Receive rounds for (; len < 0 && (round_start < round_end); round_start = odhcp6c_get_milli_time()) { - uint8_t buf[1536], cmsg_buf[CMSG_SPACE(sizeof(struct in6_pktinfo))]; + uint8_t buf[1536]; + uint8_t cmsg_buf[CMSG_SPACE(sizeof(struct in6_pktinfo))] + __aligned(__alignof__(struct cmsghdr)); struct iovec iov = {buf, sizeof(buf)}; struct sockaddr_in6 addr; struct msghdr msg = {.msg_name = &addr, .msg_namelen = sizeof(addr),