diff --git a/ip/ipmroute.c b/ip/ipmroute.c index 512afcd2..593ce3a1 100644 --- a/ip/ipmroute.c +++ b/ip/ipmroute.c @@ -159,6 +159,8 @@ int print_mroute(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) nh = RTNH_NEXT(nh); } } + fprintf(fp, " State: %s", + r->rtm_flags & RTNH_F_UNRESOLVED ? "unresolved" : "resolved"); if (show_stats && tb[RTA_MFC_STATS]) { struct rta_mfc_stats *mfcs = RTA_DATA(tb[RTA_MFC_STATS]); diff --git a/ip/iproute.c b/ip/iproute.c index e433de8b..c1957833 100644 --- a/ip/iproute.c +++ b/ip/iproute.c @@ -448,6 +448,8 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) fprintf(fp, "notify "); if (r->rtm_flags & RTNH_F_LINKDOWN) fprintf(fp, "linkdown "); + if (r->rtm_flags & RTNH_F_UNRESOLVED) + fprintf(fp, "unresolved "); if (tb[RTA_MARK]) { unsigned int mark = *(unsigned int *)RTA_DATA(tb[RTA_MARK]);