diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-09-04 22:32:45 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-09-04 22:32:45 +0200 |
commit | 9befc7cc4f26889077ace537019de92903139133 (patch) | |
tree | ae94a893c590555bee5593eaa1545cf2158d8893 /sysdep/bsd | |
parent | 96eace1ea70d7c2bc13672fbeba104d34d8ede4c (diff) |
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.
Diffstat (limited to 'sysdep/bsd')
-rw-r--r-- | sysdep/bsd/krt-sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c index 9c9df51d..f0cebd11 100644 --- a/sysdep/bsd/krt-sock.c +++ b/sysdep/bsd/krt-sock.c @@ -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)) |