From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Thu, 29 Aug 2013 20:18:28 +0800 References: <521C9BB4.2010306@gmail.com> In-Reply-To: <521C9BB4.2010306@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201308292018.28480.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCH] batctl: add sys framework for VLAN support Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking On Tuesday, August 27, 2013 20:29:40 Marco Dalla Torre wrote: > Version 2 - code style fixes > > If no directory entry corresponding to the user-selected device is found > at the > standard location for non VLAN interfaces (/sys/class/net/${base_device}), > 'batctl' now looks into directory: > /sys/devices/virtual/net/${base_device}/mesh/vlan${vid} > Where: > -${base_device}: the batman device on top of which the VLAN is sitting > -${device}: the device interface for the VLAN, > -${vid}: the identifier assigned to the VLAN. > > Information on VLAN devices (base device, vid) necessary to construct the > directory path is acquired by parsing /proc/net/vlan/${device}. > > If the user-selected command is not supported by the VLAN, an appropriate > error is shown. > --- > functions.c | 3 +++ > sys.c | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 54 insertions(+) Please don't forget the man page update. Thanks, Marek