Ignore messages related to wireless extensions.
This commit is contained in:
parent
a39b165e45
commit
6c8102e3a8
1 changed files with 2 additions and 2 deletions
|
@ -255,7 +255,7 @@ static void
|
||||||
nl_parse_link(struct nlmsghdr *h, int scan)
|
nl_parse_link(struct nlmsghdr *h, int scan)
|
||||||
{
|
{
|
||||||
struct ifinfomsg *i;
|
struct ifinfomsg *i;
|
||||||
struct rtattr *a[IFLA_STATS+1];
|
struct rtattr *a[IFLA_WIRELESS+1];
|
||||||
int new = h->nlmsg_type == RTM_NEWLINK;
|
int new = h->nlmsg_type == RTM_NEWLINK;
|
||||||
struct iface f;
|
struct iface f;
|
||||||
struct iface *ifi;
|
struct iface *ifi;
|
||||||
|
@ -268,7 +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)
|
if (scan || !a[IFLA_WIRELESS])
|
||||||
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