jsoninfo: sgw: show tableNr, ruleNr and bypassRuleNr too
authorFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 23 Nov 2015 20:00:23 +0000 (21:00 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 23 Nov 2015 20:25:41 +0000 (21:25 +0100)
Now all sgw info that is available is shown.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/jsoninfo/src/olsrd_jsoninfo.c

index 1ef99c4..122155b 100644 (file)
@@ -902,6 +902,9 @@ static void sgw_ipvx(struct autobuf *abuf, bool ipv6) {
         abuf_json_string(abuf, "tunnel", node->name);
         abuf_json_string(abuf, "destination", tunnelGw);
         abuf_json_int(abuf, "cost", gw->path_cost);
+        abuf_json_int(abuf, "tableNr", node->tableNr);
+        abuf_json_int(abuf, "ruleNr", node->ruleNr);
+        abuf_json_int(abuf, "bypassRuleNr", node->bypassRuleNr);
       }
       abuf_json_mark_array_entry(false, abuf);
     }