All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sven Eckelmann <sven@narfation.org>
To: Mark Birss <markbirss@gmail.com>
Cc: b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: BATMAN-adv Debug options
Date: Thu, 25 Jun 2020 13:44:14 +0200	[thread overview]
Message-ID: <12351834.0eS7jaRIYG@bentobox> (raw)
In-Reply-To: <CADg1mwLTTq-wjxvPvkTBb2J9qtSs_+BxhNsSW0DGTeo6QiWXbA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2442 bytes --]

[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

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2020-06-25 11:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-24 21:13 BATMAN-adv Debug options Mark Birss
2020-06-24 21:32 ` Sven Eckelmann
     [not found]   ` <CADg1mwLTTq-wjxvPvkTBb2J9qtSs_+BxhNsSW0DGTeo6QiWXbA@mail.gmail.com>
2020-06-25 11:44     ` Sven Eckelmann [this message]
2020-06-25 11:56       ` Mark Birss

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=12351834.0eS7jaRIYG@bentobox \
    --to=sven@narfation.org \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    --cc=markbirss@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.