Commit 528c2551 authored by Andy Gospodarek's avatar Andy Gospodarek Committed by Stephen Hemminger

iproute2: add support to print 'linkdown' nexthop flag

Signed-off-by: default avatarAndy Gospodaerk <gospo@cumulusnetworks.com>
Signed-off-by: default avatarDinesh Dutt <ddutt@cumulusnetworks.com>
Acked-by: default avatarScott Feldman <sfeldma@gmail.com>
parent 6885e3bf
......@@ -451,6 +451,8 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
fprintf(fp, "offload ");
if (r->rtm_flags & RTM_F_NOTIFY)
fprintf(fp, "notify ");
if (r->rtm_flags & RTNH_F_LINKDOWN)
fprintf(fp, "linkdown ");
if (tb[RTA_MARK]) {
unsigned int mark = *(unsigned int*)RTA_DATA(tb[RTA_MARK]);
if (mark) {
......@@ -670,6 +672,8 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
fprintf(fp, " onlink");
if (nh->rtnh_flags & RTNH_F_PERVASIVE)
fprintf(fp, " pervasive");
if (nh->rtnh_flags & RTNH_F_LINKDOWN)
fprintf(fp, " linkdown");
len -= NLMSG_ALIGN(nh->rtnh_len);
nh = RTNH_NEXT(nh);
}
......
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