]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
link_iptnl: Open "encap" JSON object
authorSerhey Popovych <serhe.popovych@gmail.com>
Tue, 2 Jan 2018 21:27:59 +0000 (23:27 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Sat, 6 Jan 2018 00:35:47 +0000 (16:35 -0800)
It seems missing pair of open_json_object()/close_json_object()
in iptnl implementation.

Note that we open "encap" JSON object in ip6tnl.

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
ip/link_iptnl.c

index b6ef95df2ec0f07d8d2f1e39297295ab75507a0f..24a0f0cd3841a1124c07874c94916e3a0a711cec 100644 (file)
@@ -498,6 +498,7 @@ static void iptunnel_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[
                __u16 sport = rta_getattr_u16(tb[IFLA_IPTUN_ENCAP_SPORT]);
                __u16 dport = rta_getattr_u16(tb[IFLA_IPTUN_ENCAP_DPORT]);
 
+               open_json_object("encap");
                print_string(PRINT_FP, NULL, "encap ", NULL);
                switch (type) {
                case TUNNEL_ENCAP_FOU: