public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: "Linus Lüssing" <linus.luessing@web.de>
To: b.a.t.m.a.n@lists.open-mesh.net
Subject: [B.A.T.M.A.N.] inconsistent vis-output in batman-adv
Date: Wed, 12 Aug 2009 19:10:22 +0200	[thread overview]
Message-ID: <20090812171022.GA4435@Linus-Debian> (raw)

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

Hi there,

I'm having some trouble with the vis-output in batman-adv 0.2 beta
- compatibility-version 7. It seems like the 'From' part gets
substituted with the mac address of a node's primary interface,
while the 'to' part does not. The result is, that when I try to
convert the dot-files to png/svg/etc. with neato from the
graphviz toolchain, I get two seperate graphs.

Of course, the easiest way might be to substitue the 'to' part
with the mac addresses of the primary interfaces as well, but I'd
prefer something differently:
http://www.graphviz.org/Gallery/directed/cluster.html
Those subgraph things from the dot-file-format would be a great
way, to have a more detailed image of how two batman-nodes are
connected, over which interfaces they're connected with each
other.

I had a little look at the batman-adv source code and noticed that
the structure vis_info_entry in vis.h does only have a dest and
not a src entry. So the vis-server only gets to know, the node's
primary mac address but a primary or secondary mac in dest so far,
right?

I'm also still trying to figure out, where such a src information
could come from... dest gets that stuff from orig_node->orig and
there is a list of interfaces in orig_node->batman_if and also
a neighbour list in orig_nodes->router. What would have to be used
for the src address?

I'm also wondering, what those hashing functions are for exactly.
Would I break some of that stuff by introducing a src address in
the vis-packet?

I'm not that much into reading the batman-adv source code yet, but
I'd like to get a little more familiar with it. So please be
considerate :).

Cheers, Linus

PS: I'm having a router with vlans here, so two seperate
LAN-ports, which batman is using, are having the same mac-address.
Could that cause any trouble?

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 835 bytes --]

                 reply	other threads:[~2009-08-12 17:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20090812171022.GA4435@Linus-Debian \
    --to=linus.luessing@web.de \
    --cc=b.a.t.m.a.n@lists.open-mesh.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox