Ignore unknown netlink events.
Bird sometimes reported 'bird: nl_parse_link: Malformed message received'. The cause is that bird asynchronously received netlink packet from wireless driver about some wireless event on its link layer. In that case bird shouldn't complain.
This commit is contained in:
parent
44cb1449ed
commit
d7f3b30649
1 changed files with 2 additions and 1 deletions
|
@ -268,6 +268,7 @@ nl_parse_link(struct nlmsghdr *h, int scan)
|
||||||
if (!a[IFLA_IFNAME] || RTA_PAYLOAD(a[IFLA_IFNAME]) < 2 ||
|
if (!a[IFLA_IFNAME] || RTA_PAYLOAD(a[IFLA_IFNAME]) < 2 ||
|
||||||
!a[IFLA_MTU] || RTA_PAYLOAD(a[IFLA_MTU]) != 4)
|
!a[IFLA_MTU] || RTA_PAYLOAD(a[IFLA_MTU]) != 4)
|
||||||
{
|
{
|
||||||
|
if (scan)
|
||||||
log(L_ERR "nl_parse_link: Malformed message received");
|
log(L_ERR "nl_parse_link: Malformed message received");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue