From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCH] ipv4: Get the address of interface correctly. Date: Sun, 28 Jan 2018 14:44:58 +0000 Message-ID: <20180128144457.GH13338@ZenIV.linux.org.uk> References: <1517139538-25746-1-git-send-email-xiangxia.m.yue@gmail.com> <20180128141907.GG13338@ZenIV.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: davem@davemloft.net, netdev@vger.kernel.org To: Tonghao Zhang Return-path: Received: from zeniv.linux.org.uk ([195.92.253.2]:53514 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751898AbeA1OpA (ORCPT ); Sun, 28 Jan 2018 09:45:00 -0500 Content-Disposition: inline In-Reply-To: <20180128141907.GG13338@ZenIV.linux.org.uk> Sender: netdev-owner@vger.kernel.org List-ID: On Sun, Jan 28, 2018 at 02:19:08PM +0000, Al Viro wrote: > On Sun, Jan 28, 2018 at 03:38:58AM -0800, Tonghao Zhang wrote: > > When using ioctl to get address of interface, we can't > > get it anymore. For example, the command is show as below. > > > > # ifconfig eth0 > > > > In the patch ("03aef17bb79b3"), the devinet_ioctl does not > > return a suitable value, even though we can find it in > > the kernel. Then fix it now. > > D'oh... > > Acked-by: Al Viro > > I really wonder how has that avoided loud screams at boot time... ... and looks like LTP doesn't catch that either - none of these ioctl is ever mentioned in the source, at least (of all SIOCS... it only tries SIOCSIFFLAGS). Is there any testsuite that would cover net ioctls?