From mboxrd@z Thu Jan 1 00:00:00 1970 From: Serhey Popovych Subject: [PATCH iproute2 0/3] Improve tunnel local/remote endpoint params and gre link attribute handling Date: Wed, 13 Dec 2017 21:35:59 +0200 Message-ID: <1513193762-1580-1-git-send-email-serhe.popovych@gmail.com> To: netdev@vger.kernel.org Return-path: Received: from mail-lf0-f66.google.com ([209.85.215.66]:35158 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753106AbdLMTgd (ORCPT ); Wed, 13 Dec 2017 14:36:33 -0500 Received: by mail-lf0-f66.google.com with SMTP id j124so3990011lfg.2 for ; Wed, 13 Dec 2017 11:36:32 -0800 (PST) Received: from tuxracer.localdomain ([2a01:6d80::195:20:96:53]) by smtp.gmail.com with ESMTPSA id j85sm478237lfh.53.2017.12.13.11.36.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Dec 2017 11:36:30 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: In this series following problems addressed: 1) Size of IFLA_GRE_LINK attribute is 32 bits long in , not 8 bit. 2) Use get_addr() instead of get_prefix() to parse local/remote tunnel endpoints as IPADDR, not PREFIX as per ip-link(8). 3) No need to check if local/remote endpoints are zero (e.g. INADDR_ANY): it is fully legal value, accepted by the kernel. See individual patch description message for details. Thanks, Serhii Serhey Popovych (3): ip/tunnel: Unify setup and accept zero address for local/remote endpoints ip/tunnel: Use get_addr() instead of get_prefix() for local/remote endpoints ip: gre: fix IFLA_GRE_LINK attribute sizing ip/ip6tunnel.c | 8 ++------ ip/iptunnel.c | 10 ++-------- ip/link_gre.c | 8 +++----- ip/link_gre6.c | 8 ++------ ip/link_ip6tnl.c | 12 ++++-------- ip/link_iptnl.c | 10 ++-------- ip/link_vti.c | 14 ++------------ ip/link_vti6.c | 26 ++++++++------------------ 8 files changed, 25 insertions(+), 71 deletions(-) -- 1.7.10.4