]> git.puffer.fish Git - mirror/frr.git/commit
Fix alignment assumptions on non-RT_ROUNDUP platforms.
authorGreg Troxel <gdt@ir.bbn.com>
Mon, 23 Mar 2015 19:16:29 +0000 (15:16 -0400)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 26 May 2016 15:25:14 +0000 (15:25 +0000)
commit67320b26b516ac73e1f1f45bde525cef5f4113d1
treeb6b8414207dedd6c87f909e2b94aec78b19d1b58
parent76a12162f93d8b5bc07c95e2c00824aba4a1410f
Fix alignment assumptions on non-RT_ROUNDUP platforms.

The comment said that apple uses int and BSD traditionally used long,
but the code was backwards.  This fixes apple to be int, and otherwise
long.  That should make FreeBSD, which aligns to long, work correctly,
even without using SA_SIZE.

(cherry picked from commit 941789e470199df4f612368f669ecc0fd096fb9a)
zebra/kernel_socket.c