Thread (6 messages) 6 messages, 4 authors, 2017-06-14

Re: [PATCH iproute2] ip: mroute: Add table output to show command

flat view

From: David Ahern <hidden>
Date: 2017-06-14 15:42:16

On 6/14/17 6:08 AM, Donald Sharp wrote:
quoted hunk ↗ jump to hunk
diff --git a/ip/ipmroute.c b/ip/ipmroute.c
index 4d2d758..70f4c4f 100644
--- a/ip/ipmroute.c
+++ b/ip/ipmroute.c
@@ -189,6 +189,11 @@ int print_mroute(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
 		fprintf(fp, ", Age %4i.%.2i", (int)tv.tv_sec,
 			(int)tv.tv_usec/10000);
 	}
+
+	if (table && (table != RT_TABLE_MAIN || show_details > 0) && !filter.tb)
+		fprintf(fp, " Table: %s",
I suggest lowercase 'table' to be consistent with ip route output.
quoted hunk ↗ jump to hunk
+			rtnl_rttable_n2a(table, b1, sizeof(b1)));
+
 	fprintf(fp, "\n");
 	fflush(fp);
 	return 0;
-- 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help