Commit 69d29071 authored by Kirill Smelkov's avatar Kirill Smelkov

X show added/deleted routes in monitor vertically aligned

parent 6a0abf2a
...@@ -368,7 +368,9 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) ...@@ -368,7 +368,9 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
} }
if (n->nlmsg_type == RTM_DELROUTE) if (n->nlmsg_type == RTM_DELROUTE)
fprintf(fp, "Deleted "); fprintf(fp, "- ");
else
fprintf(fp, "+ ");
if ((r->rtm_type != RTN_UNICAST || show_details > 0) && !filter.type) if ((r->rtm_type != RTN_UNICAST || show_details > 0) && !filter.type)
fprintf(fp, "%s ", rtnl_rtntype_n2a(r->rtm_type, b1, sizeof(b1))); fprintf(fp, "%s ", rtnl_rtntype_n2a(r->rtm_type, b1, sizeof(b1)));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment