jsoninfo: minor field reordering for /sgw
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 3 Dec 2015 13:20:56 +0000 (14:20 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 3 Dec 2015 15:43:33 +0000 (16:43 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/jsoninfo/src/olsrd_jsoninfo.c

index 86c6886..51eb19b 100644 (file)
@@ -456,9 +456,9 @@ static void sgw_ipvx(struct autobuf *abuf, bool ipv6) {
         abuf_json_boolean(abuf, "IPv4", gw->ipv4);
         abuf_json_boolean(abuf, "IPv4-NAT", gw->ipv4nat);
         abuf_json_boolean(abuf, "IPv6", gw->ipv6);
-        abuf_json_string(abuf, "tunnel", node->name);
-        abuf_json_ip_address(abuf, "destination", &gw->originator);
         abuf_json_int(abuf, "cost", gw->path_cost);
+        abuf_json_ip_address(abuf, "destination", &gw->originator);
+        abuf_json_string(abuf, "tunnel", node->name);
         abuf_json_int(abuf, "tableNr", node->tableNr);
         abuf_json_int(abuf, "ruleNr", node->ruleNr);
         abuf_json_int(abuf, "bypassRuleNr", node->bypassRuleNr);