From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Date: Tue, 09 Aug 2016 22:06:24 +0000 Subject: Re: [PATCH net-next] ppp: build ifname using unit identifier for rtnl based devices Message-Id: <20160809.150624.845634212821004691.davem@davemloft.net> List-Id: References: <20160809131226.wxqmmiogluudr4sn@alphalink.fr> In-Reply-To: <20160809131226.wxqmmiogluudr4sn@alphalink.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: g.nault@alphalink.fr Cc: netdev@vger.kernel.org, paulus@samba.org, linux-ppp@vger.kernel.org From: Guillaume Nault Date: Tue, 9 Aug 2016 15:12:26 +0200 > Userspace programs generally need to know the name of the ppp devices > they create. Both ioctl and rtnl interfaces use the ppp sheme > to name them. But although the suffix used by the ioctl interface can > be known by userspace (it's the PPP unit identifier returned by the > PPPIOCGUNIT ioctl), the one used by the rtnl is only known by the > kernel. > > This patch brings more consistency between ioctl and rtnl based ppp > devices by generating device names using the PPP unit identifer as > suffix in both cases. This way, userspace can always infer the name of > the devices they create. > > Signed-off-by: Guillaume Nault Applied, thanks.