X-Git-Url: https://git.decadent.org.uk/gitweb/?p=odhcp6c.git;a=blobdiff_plain;f=src%2Fra.c;fp=src%2Fra.c;h=dd5962a29e750dba87bd39c33664e8e531efc7d5;hp=2d442f6a8bfbab096a2654317bd08fa60f113118;hb=687b3c65c0460dd8c4ba7e63e3ae0ab20836e6e8;hpb=8a8005f7ca8973702b36e711993bfff89ca9600c diff --git a/src/ra.c b/src/ra.c index 2d442f6..dd5962a 100644 --- a/src/ra.c +++ b/src/ra.c @@ -274,7 +274,8 @@ bool ra_process(void) { bool found = false; bool changed = false; - uint8_t buf[1500], cmsg_buf[128]; + uint8_t buf[1500] __aligned(4); + uint8_t cmsg_buf[128] __aligned(__alignof__(struct cmsghdr)); struct nd_router_advert *adv = (struct nd_router_advert*)buf; struct odhcp6c_entry *entry = alloca(sizeof(*entry) + 256); const struct in6_addr any = IN6ADDR_ANY_INIT;