diff mbox series

[3/5] monitor: Don't skip genl control Done,Error messages

Message ID 20240823161848.485685-3-denkenz@gmail.com (mailing list archive)
State New
Headers show
Series [1/5] defs: Add defs.h to hold certain global definitions | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-ci-gitlint success GitLint

Commit Message

Denis Kenzior Aug. 23, 2024, 4:18 p.m. UTC
---
 monitor/nlmon.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/monitor/nlmon.c b/monitor/nlmon.c
index f0ffff90b1d7..f7b0f9a14aa6 100644
--- a/monitor/nlmon.c
+++ b/monitor/nlmon.c
@@ -8312,7 +8312,8 @@  void nlmon_print_genl(struct nlmon *nlmon, const struct timeval *tv,
 			continue;
 		}
 
-		if (!nlmon->read && nlmsg->nlmsg_type != nlmon->id)
+		if (nlmsg->nlmsg_type >= NLMSG_MIN_TYPE && !nlmon->read &&
+				nlmsg->nlmsg_type != nlmon->id)
 			continue;
 
 		nlmon_message(nlmon, tv, nlmsg);