monitor: Don't skip genl control Done,Error messages

This commit is contained in:
Denis Kenzior 2024-08-11 22:42:54 -05:00
parent 5118f08d79
commit 02ec70e290
1 changed files with 2 additions and 1 deletions

View File

@ -8312,7 +8312,8 @@ void nlmon_print_genl(struct nlmon *nlmon, const struct timeval *tv,
continue; continue;
} }
if (!nlmon->read && nlmsg->nlmsg_type != nlmon->id) if (nlmsg->nlmsg_type >= NLMSG_MIN_TYPE && !nlmon->read &&
nlmsg->nlmsg_type != nlmon->id)
continue; continue;
nlmon_message(nlmon, tv, nlmsg); nlmon_message(nlmon, tv, nlmsg);