From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Sven Eckelmann Subject: Re: BATMAN-adv Debug options Date: Thu, 25 Jun 2020 13:44:14 +0200 Message-ID: <12351834.0eS7jaRIYG@bentobox> In-Reply-To: References: <1986026.lAXmxmQttu@sven-edge> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3144515.ssdNmsuo9I"; micalg="pgp-sha512"; protocol="application/pgp-signature" 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-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: To: Mark Birss Cc: b.a.t.m.a.n@lists.open-mesh.org --nextPart3144515.ssdNmsuo9I Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" [please never contact me privately about batman-adv without a really good reason. Cc at least the mailing list] On Thursday, 25 June 2020 13:12:34 CEST Mark Birss wrote: > "Is the lower layer working or did the lower layer break? Can be > tested easily with multicast/broadcast and unicast pings on the lower > device." > > How to do this ? ping/ping6. * unicast: just ping as normal the lower device (not bat0) IPv4 address or (link local) IPv6 address * multicast: just send from both sides an multicast ping. For example ff02::1%wlan0 and check if the remote (not your own device) responds with a unicast reply > As for originator and neighbours this can also be checked by batctl or > proc file system. proc? If you have batman-adv entries in proc then you should definitely upgrade. This was removed in 2010. Should this have been a question about where to find the originators and neighbors table? And you can see this via "batctl meshif bat0 originators" and "batctl meshif bat0 neighbors". The "meshif bat0" has to replaced with "-m bat0" on older batctl versions. > Another question is there a breakdown of the meaning of the messages for > > $ cat /sys/kernel/debug/batman_adv/bat0/log > > The additional debug output is by default disabled. It can be enabled > during run time. Following log_levels are defined: No idea what you want here. The help text already says what each message type is about. If you don't know what a specific feature is then please check the wiki [1]. > and what is the Flags here > > root@LiMe-a376eb:~# batctl tl > [B.A.T.M.A.N. adv 2020.1-openwrt-2, MainIF/MAC: > dummy0/aa:84:86:a3:76:eb (bat0/72:8b:cf:a4:00:77 BATMAN_IV), TTVN: 4] > Client VID Flags Last seen (CRC ) > 72:8b:cf:a4:00:77 -1 [.P....] 0.000 (0x1c349131) > 50:3e:aa:06:6f:4d -1 [......] 0.280 (0x1c349131) > 72:8b:cf:a4:00:77 0 [.P....] 0.000 (0x9243e316) > cc:2d:e0:47:b3:56 -1 [......] 0.980 (0x1c349131) > 72:8b:cf:a4:00:77 1 [.P....] 0.000 (0xdb7f9e31) The flags here are * 'R' BATADV_TT_CLIENT_ROAM * 'N' BATADV_TT_CLIENT_NEW * 'X' BATADV_TT_CLIENT_PENDING * 'W' BATADV_TT_CLIENT_WIFI * 'I' BATADV_TT_CLIENT_ISOLA * 'P' BATADV_TT_CLIENT_NOPURGE And they are documented in the wiki [2] Kind regards, Sven [1] https://www.open-mesh.org/projects/batman-adv/wiki/Protocol_information [2] https://www.open-mesh.org/projects/batman-adv/wiki/TT-Flags --nextPart3144515.ssdNmsuo9I Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEF10rh2Elc9zjMuACXYcKB8Eme0YFAl70jg4ACgkQXYcKB8Em e0YPJQ//WVm74Lbb0Uy2218PQ7JD1GTtSyZsl3qDVW54uX1gmz7jDYDE+46V91Rt MtTmEyeryh6ROH0+pCACkyc3Y8QlDPnACXNn+vXGNiqWfZunM5EJzNvOUPPzS+Ya ierUrTGzhCENqs4Cg9xbtMtlgGhEZt6DlL22F/EqlQxapUWGriJO7g/beNBJlhC6 fvsOmV7B6VO/S1qg2oz5sXujNqK5q3xci2hNfJUCGkSAjQh698A/UfX04yerEi3X XSbaVONUGsie061xeXvtnV7wu96711q295aKBB/akJGRgQwEh6Z5dLE31l77xK0d 36eZmLBqEALKZhHW5dzTtBm+2UQIFVdWWh/FtqYKHZociRe1z6ZRekwVXu0EQkvS HlNniLB8Alkpp1H8K7cTxfzbvkHNK0uuFzkuNHVSIo3gFxAIYzTZno8FfS7JiDOD OGwwIWlgdHNfs+xsloP6YxgUx/D7dCNSlZwW+CqmzmDQAAyXeswNIuAZm4lPKU2A r3mJtBPDNu3cA0hqDniFVppazesvy64V+F9eqzvzzP+4cS5CDvX/JVQv05Ue2vML gcNiuEr3qPFsQYMGqbR8RtA9wxf3Dzt8kvVhSNAHI1PG7+TsuEQmuDMu7cRDL4fL YS+66GpI2uEWx2gnGsH6Ils1FTRlAyy4Xcx1iouXAv8g10FLEHY= =oTmE -----END PGP SIGNATURE----- --nextPart3144515.ssdNmsuo9I--