mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Merge commit '1e47b9f203aaaad0fb658d40a1670f1d0437f1f8' into thread-next
This commit is contained in:
@@ -193,6 +193,10 @@ static inline void
|
||||
sockaddr_fill_dl(struct sockaddr_dl *sa, struct iface *ifa)
|
||||
{
|
||||
uint len = OFFSETOF(struct sockaddr_dl, sdl_data);
|
||||
|
||||
/* Workaround for FreeBSD 13.0 */
|
||||
len = MAX(len, sizeof(struct sockaddr));
|
||||
|
||||
memset(sa, 0, len);
|
||||
sa->sdl_len = len;
|
||||
sa->sdl_family = AF_LINK;
|
||||
|
Reference in New Issue
Block a user