From mboxrd@z Thu Jan 1 00:00:00 1970 From: Serhey Popovych Subject: [PATCH iproute2 v2 0/3] iptnl/tunnel: Open JSON section, kill code duplication and print iptnl mode Date: Tue, 2 Jan 2018 23:27:56 +0200 Message-ID: <1514928479-30313-1-git-send-email-serhe.popovych@gmail.com> To: netdev@vger.kernel.org Return-path: Received: from mail-lf0-f41.google.com ([209.85.215.41]:38298 "EHLO mail-lf0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751096AbeABV2D (ORCPT ); Tue, 2 Jan 2018 16:28:03 -0500 Received: by mail-lf0-f41.google.com with SMTP id w196so39033058lff.5 for ; Tue, 02 Jan 2018 13:28:02 -0800 (PST) Received: from tuxracer.localdomain (netdev-gw1.skif.com.ua. [195.20.96.53]) by smtp.gmail.com with ESMTPSA id g12sm4534735lfd.32.2018.01.02.13.28.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jan 2018 13:28:01 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: In this series I present following improvements and fixes: 1) Add missing open_json_context() to link_iptnl.c for "encap" options. 2) Get rid of code duplication when parsing tunnel mode parameters in link_iptnl.c. 3) Add code to link_iptnl.c to print tunnel mode to be inline with ip6tnl. See individual patch description message for details. This is v2. Fixed proto value for ipip tunnel mode: "proto ipip" vs "proto ip4ip4" previously. Thanks, Serhii Serhey Popovych (3): link_iptnl: Kill code duplication link_iptnl: Print tunnel mode link_iptnl: Open "encap" JSON object ip/link_iptnl.c | 45 +++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 22 deletions(-) -- 1.7.10.4