From 5ec8a9f1169e6bcac13507802e9d299ae5bc2f10 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 4 Nov 2020 13:33:58 -0600 Subject: [PATCH] monitor: Pretty-print family for RTM_*ROUTE messages --- monitor/nlmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor/nlmon.c b/monitor/nlmon.c index 16b4e4ca..1aa86577 100644 --- a/monitor/nlmon.c +++ b/monitor/nlmon.c @@ -6949,7 +6949,7 @@ static void print_rtmsg(const struct rtmsg *msg) }; char str[256]; - print_field("RTM Family: %hhu", msg->rtm_family); + print_field("RTM Family: %s", family_to_string(msg->rtm_family)); print_field("RTM Destination Len: %hhu", msg->rtm_dst_len); print_field("RTM Source Len: %hhu", msg->rtm_src_len); print_field("RTM TOS Field: %hhu", msg->rtm_tos);