From: Serhey Popovych Date: Tue, 2 Jan 2018 21:27:59 +0000 (+0200) Subject: link_iptnl: Open "encap" JSON object X-Git-Tag: v4.15.0~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9deb75428362de5d7cf5e971be37c6a205015e8d;p=thirdparty%2Fiproute2.git link_iptnl: Open "encap" JSON object 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 --- diff --git a/ip/link_iptnl.c b/ip/link_iptnl.c index b6ef95df2..24a0f0cd3 100644 --- a/ip/link_iptnl.c +++ b/ip/link_iptnl.c @@ -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: