]> git.puffer.fish Git - mirror/frr.git/commit
zebra/kernel_socket.c: Use platform alignment
authorGreg Troxel <gdt@ir.bbn.com>
Tue, 2 Dec 2014 19:51:49 +0000 (14:51 -0500)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 26 May 2016 15:24:50 +0000 (15:24 +0000)
commitcfa0ed0949284a978e6d1710de66cf40474594c9
tree19eb8921ec31abbde5728aeb8e34749451b68c85
parent9b97a19b10268c8a4b533e72640d53b504e90193
zebra/kernel_socket.c: Use platform alignment

Use the platform-provided RT_ROUNDUP macro to align sockaddrs on the
routing socket, rather than using hard-coded assumptions about
alignment.  Emit a warning if the OS doesn't define alignment macros.

Resolves failure of ripngd on NetBSD 6 i386, which changed alignment
to uint64_t from long.

(cherry picked from commit 273b1bd341afff86ba571e0be296d88dba627136)
zebra/kernel_socket.c