From mboxrd@z Thu Jan 1 00:00:00 1970 From: Serhey Popovych Subject: [PATCH iproute2 3/3] link_iptnl: Open "encap" JSON object Date: Tue, 2 Jan 2018 17:29:19 +0200 Message-ID: <1514906959-9719-4-git-send-email-serhe.popovych@gmail.com> References: <1514906959-9719-1-git-send-email-serhe.popovych@gmail.com> To: netdev@vger.kernel.org Return-path: Received: from mail-lf0-f44.google.com ([209.85.215.44]:34684 "EHLO mail-lf0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751464AbeABP3e (ORCPT ); Tue, 2 Jan 2018 10:29:34 -0500 Received: by mail-lf0-f44.google.com with SMTP id h140so5200588lfg.1 for ; Tue, 02 Jan 2018 07:29:33 -0800 (PST) Received: from tuxracer.localdomain (netdev-gw1.skif.com.ua. [195.20.96.53]) by smtp.gmail.com with ESMTPSA id q25sm8444069ljc.73.2018.01.02.07.29.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jan 2018 07:29:31 -0800 (PST) In-Reply-To: <1514906959-9719-1-git-send-email-serhe.popovych@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: 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 --- ip/link_iptnl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ip/link_iptnl.c b/ip/link_iptnl.c index afd1696..650f69b 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: -- 1.7.10.4