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

Denis Kenzior
2024-08-23T16:18:53Z

---
monitor/nlmon.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

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);
--
2.45.2