From: Serhey Popovych Subject: [PATCH iproute2-next 0/3] ip/tunnel: Unify local/remote endpoint address parsing Date: Fri, 9 Feb 2018 20:06:00 +0200 Message-ID: <1518199563-16182-1-git-send-email-serhe.popovych@gmail.com> To: netdev@vger.kernel.org Return-path: Received: from mail-lf0-f68.google.com ([209.85.215.68]:43885 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752649AbeBISGH (ORCPT ); Fri, 9 Feb 2018 13:06:07 -0500 Received: by mail-lf0-f68.google.com with SMTP id a25so3098790lfg.10 for ; Fri, 09 Feb 2018 10:06:07 -0800 (PST) Received: from tuxracer.localdomain ([2a01:6d80::195:20:96:53]) by smtp.gmail.com with ESMTPSA id f11sm505747lja.63.2018.02.09.10.06.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Feb 2018 10:06:05 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: Use get_addr_rta() helper to unify address retriveal from netlink message when configuring tunnel and get_addr() to parse endpoint address into @inet_prefix. This is next step towards ip and ipv6 tunnel module merge: endpoint address parsing code will differ only in @family constant being passed to get_addr_rta() and get_addr(). Reviews, comments and suggestions are welcome. Thanks, Serhey Serhey Popovych (3): vti/vti6: Unify local/remote endpoint address parsing gre/gre6: Unify local/remote endpoint address parsing iptnl/ip6tnl: Unify local/remote endpoint and 6rd address parsing ip/link_gre.c | 56 +++++++++++++++++------------ ip/link_gre6.c | 37 ++++++++++---------- ip/link_ip6tnl.c | 39 +++++++++++---------- ip/link_iptnl.c | 103 +++++++++++++++++++++++++++--------------------------- ip/link_vti.c | 31 +++++++++------- ip/link_vti6.c | 37 ++++++++++---------- 6 files changed, 162 insertions(+), 141 deletions(-) -- 1.7.10.4