Fix alignment of buffers in ra_process and dhcpv6_request
authorBen Hutchings <ben@decadent.org.uk>
Fri, 22 Jan 2016 20:57:34 +0000 (20:57 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 28 Jan 2016 15:48:06 +0000 (15:48 +0000)
commit687b3c65c0460dd8c4ba7e63e3ae0ab20836e6e8
tree2b54573e649124945a74665cd3b9c38dd5d052a3
parent8a8005f7ca8973702b36e711993bfff89ca9600c
Fix alignment of buffers in ra_process and dhcpv6_request

The packet buffer needs to be 32-bit aligned to ensure that the various
32-bit fields we pick out are naturally aligned.

The control message buffers needs to be naturally aligned for struct
cmsghdr.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
src/dhcpv6.c
src/odhcp6c.h
src/ra.c