mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-17 08:33:22 +00:00
ip monitor: Changed 'Unknown message' format to be more informative
In case if unknown message was handled then it will be displayed as: Unknown message: type=0x00000044(68) flags=0x00000000(0) len=0x0000004c(76) Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
This commit is contained in:
parent
a07c6d6135
commit
40aadf8b09
@ -143,8 +143,10 @@ static int accept_msg(const struct sockaddr_nl *who,
|
||||
return 0;
|
||||
if (n->nlmsg_type != NLMSG_ERROR && n->nlmsg_type != NLMSG_NOOP &&
|
||||
n->nlmsg_type != NLMSG_DONE) {
|
||||
fprintf(fp, "Unknown message: %08x %08x %08x\n",
|
||||
n->nlmsg_len, n->nlmsg_type, n->nlmsg_flags);
|
||||
fprintf(fp, "Unknown message: type=0x%08x(%d) flags=0x%08x(%d)"
|
||||
"len=0x%08x(%d)\n", n->nlmsg_type, n->nlmsg_type,
|
||||
n->nlmsg_flags, n->nlmsg_flags, n->nlmsg_len,
|
||||
n->nlmsg_len);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user