Return-Path: Date: Sat, 4 Sep 2010 15:02:06 +0200 From: Simon Wunderlich Message-ID: <20100904130204.GA8638@pandem0nium> References: <1283603445-5980-1-git-send-email-sven.eckelmann@gmx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KsGdsel6WgEHnImy" Content-Disposition: inline In-Reply-To: <1283603445-5980-1-git-send-email-sven.eckelmann@gmx.de> Subject: Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Merge batman-adv 2010.1.0 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 --KsGdsel6WgEHnImy Content-Type: text/plain; charset=utf8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable applied in r1784, Thanks, Simon On Sat, Sep 04, 2010 at 02:30:45PM +0200, Sven Eckelmann wrote: > Signed-off-by: Sven Eckelmann > --- > batman-adv/CHANGELOG | 16 ++++++++++++++++ > batman-adv/README | 47 +++++++++++++++++++++++---------------------= --- > 2 files changed, 39 insertions(+), 24 deletions(-) >=20 > diff --git a/batman-adv/CHANGELOG b/batman-adv/CHANGELOG > index 86450b4..67bfc6e 100644 > --- a/batman-adv/CHANGELOG > +++ b/batman-adv/CHANGELOG > @@ -1,3 +1,19 @@ > +batman-adv 2010.1.0: > + > +* support latest kernels (2.6.21 - 2.6.36) > +* further cleanup of coding style > +* recording of routes for batman icmp messages > +* move of complex sysfs files to debugfs > +* change output of all sysfs files to single-value-only > +* reintroduce virtual file for the debug log > +* bonding and alternating added > +* add ttl to broadcasts > +* change all sequence numbers to 32 bit > +* show last-seen in originator table > +* many bugs (rounding issues, locking, netdev event handler, ...) squash= ed > + > + -- Sat, 04 Sep 2010 13:56:38 +0200 > + > batman-adv 2010.0.0: > =20 > * support latest kernels (2.6.21 - 2.6.35) > diff --git a/batman-adv/README b/batman-adv/README > index 24b062b..ecef96d 100644 > --- a/batman-adv/README > +++ b/batman-adv/README > @@ -1,4 +1,4 @@ > -[state: 12-06-2010] > +[state: 04-09-2010] > =20 > BATMAN-ADV > ---------- > @@ -18,7 +18,7 @@ Batman advanced was implemented as a Linux kernel drive= r to re- > duce the overhead to a minimum. It does not depend on any (other) > network driver, and can be used on wifi as well as ethernet lan, > vpn, etc ... (anything with ethernet-style layer 2). It compiles > -against and should work with Linux 2.6.21 - 2.6.35. Supporting > +against and should work with Linux 2.6.21 - 2.6.36. Supporting > older versions is not planned, but it's probably easy to backport > it. If you work on a backport, feel free to contact us. :-) > =20 > @@ -83,15 +83,21 @@ All mesh wide settings can be found in batman's o= wn interface > folder: > =20 > # ls /sys/class/net/bat0/mesh/ > -# aggregate_ogm originators transtable_global vis_mode > -# orig_interval transtable_local vis_data > +# aggregated_ogms bonding orig_interval vis_mode > + > + > +There is a special folder for debugging informations: > + > +# ls /sys/kernel/debug/batman_adv/bat0/ > +# originators socket transtable_global transtable_local > +# vis_data > =20 > =20 > Some of the files contain all sort of status information regard- > ing the mesh network. For example, you can view the table of > originators (mesh participants) with: > =20 > -# cat /sys/class/net/bat0/mesh/originators > +# cat /sys/kernel/debug/batman_adv/bat0/originators > =20 > Other files allow to change batman's behaviour to better fit your > requirements. For instance, you can check the current originator > @@ -99,7 +105,7 @@ interval (value in milliseconds which determines how o= ften batman > sends its broadcast packets): > =20 > # cat /sys/class/net/bat0/mesh/orig_interval > -# status: 1000 > +# 1000 > =20 > and also change its value: > =20 > @@ -153,7 +159,7 @@ at least very similar) data. > When configured as server, you can get a topology snapshot of > your mesh: > =20 > -# cat /sys/class/net/bat0/mesh/vis_data > +# cat /sys/kernel/debug/batman_adv/bat0/vis_data > =20 > This raw output is intended to be easily parsable and convertable > with other tools. Have a look at the batctl README if you want a > @@ -201,32 +207,25 @@ uncomment the line > =20 > #EXTRA_CFLAGS +=3D -DCONFIG_BATMAN_ADV_DEBUG > =20 > +Those additional debug messages can be accessed using a special > +file in debugfs > + > +# cat /sys/kernel/debug/batman_adv/bat0/log > + > The additional debug output is by default disabled. It can be en- > -abled either at kernel modules load time or during run time. To > -enable debug output at module load time, add the module parameter > -debug=3D. can take one of four values. > +abled during run time. Following log_levels are defined: > =20 > 0 - All debug output disabled > 1 - Enable messages related to routing / flooding / broadcasting > 2 - Enable route or hna added / changed / deleted > 3 - Enable all messages > =20 > -e.g. > - > -# modprobe batman-adv debug=3D2 > - > -will load the module and enable debug messages for when routes or > -HNAs change. > - > -The debug output can also be changed at runtime using the file > -/sys/module/batman-adv/parameters/debug. e.g. > - > -# echo 2 > /sys/module/batman-adv/parameters/debug > +The debug output can be changed at runtime using the file > +/sys/class/net/bat0/mesh/log_level. e.g. > =20 > -enables debug messages for when routes or HNAs > +# echo 2 > /sys/class/net/bat0/mesh/log_level > =20 > -The debug output is sent to the kernel logs. So try dmesg, lo- > -gread, etc to see the debug messages. > +will enable debug messages for when routes or HNAs change. > =20 > =20 > BATCTL > --=20 > 1.7.1 >=20 >=20 --KsGdsel6WgEHnImy Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkyCQ0wACgkQrzg/fFk7axbDjACfZE1pNn9gN5hJWBSTwVCLvRoF z2QAniV3XXcQMnFfHwJTWaCxlnN0l4I2 =2xlg -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy--