1
0
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:
Maria Matejka
2023-01-21 23:49:52 +01:00
8 changed files with 58 additions and 12 deletions

View File

@@ -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;