]> git.puffer.fish Git - mirror/frr.git/commit
zebra: use SA_SIZE for RT_ROUNDUP on FreeBSD
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 3 Mar 2015 20:04:20 +0000 (21:04 +0100)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 26 May 2016 15:33:29 +0000 (15:33 +0000)
commite7f0e649dd534785ba86def26d6c41aa57a6cf13
tree1be09975bbc9a85531a79b58bd77cc7bf2de2fad
parent27b87393125262780206642971f9576ed7931338
zebra: use SA_SIZE for RT_ROUNDUP on FreeBSD

FreeBSD provides SA_SIZE (and none of the other options to infer padded
size of a struct sockaddr).  Just define SAROUNDUP to SA_SIZE if it is
available.

This also drops a superfluous-looking extra macro branch which would
require ROUNDUP.  It seemed redundant to my eyes, but I have no idea
what odd things might have triggered addition of this in the first
place...

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit 7e92322cfcc6c062acae3b550f90d36fe40763f1)
zebra/kernel_socket.c