mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
BSD: Fix alignment issue
Incorrect structure alignment breaks kernel routing table updates on FreeBSD/ARM (and perhaps other platforms). Thanks to Eugene Sevastyanov for the original patch.
This commit is contained in:
parent
96eace1ea7
commit
9befc7cc4f
@ -168,7 +168,7 @@ struct ks_msg
|
||||
{
|
||||
struct rt_msghdr rtm;
|
||||
struct sockaddr_storage buf[RTAX_MAX];
|
||||
};
|
||||
} PACKED;
|
||||
|
||||
#define ROUNDUP(a) \
|
||||
((a) > 0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) : sizeof(long))
|
||||
|
Loading…
Reference in New Issue
Block a user