public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew.lunn@ascom.ch>
To: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@lists.open-mesh.net>
Subject: Re: [B.A.T.M.A.N.] [batman-adv] Use prinkt instead of debug_log
Date: Mon, 24 Aug 2009 15:05:09 +0200	[thread overview]
Message-ID: <20090824130509.GP30255@ma.tech.ascom.ch> (raw)
In-Reply-To: <200908242016.20992.lindner_marek@yahoo.de>

> > Finish stripping out debug_log.
> 
> Probably ok but how do we handle the routing protocol debugging
> stuff ? Should we pipe everything through printk ? Actually, that
> considerably slows down the system because many distros write that
> into a log file.

By default, it would be disabled, at compile time. So for 99% of
users, there is in fact a speedup. Anybody who needs the debug info
would have to recompile the module. Or there are more options. eg The
code is always compiled by default, but needs a module option to
actually enable the output. For those wanting a lean/mean system, the
code can be compile out, etc.
 
> > Make batctl standalone.
> 
> What does that mean ?
 
At the moment, to use batman-adv you need the source to batman,
layer-3, user space daemon in order to get batctl to compile. There
are symbolic links for hash.[ch] and list-batman.[ch]. To the kernel
folks, this dependency will seem a little odd. 
 
> > Maybe make batctl _The_ tool for configuration and status and
> > depreciate direct proc access, so that we can restructure it without
> > too much pain for users.
> 
> Handling everything via ioctls ?

That is probably too far. I would probably keep 
/proc/net/bat0/[originators|transtable_global|transtable_local|vis]. 

where vis contains the actual data.

and create 

/sys/class/batman/bat0/[aggregate_ogm|orig_interval|vis]
 
and here vis controls server/client functionality. Maybe it needs a
different name?

As for configuring interfaces, maybe in the long terms we should be
thinking of commands like:

batctl add bat0
batclt addif bat0 eth1
batclt addif bat0 wlan1

batctl delif bat0 eth1
batctl delif bat0 wlan1
batctl del bat0

The first implementation of this would use interfaces in proc.  Once
the ioctl calls are implemented, you then need a new version of batctl
which uses them. To the user it stay the same. 

Probably the first version would not even support bat1. It is an
interesting question if supporting multiple batman instances is
needed. There could be two overlapping meshs in different
administrative domains. Or maybe in a high redundancy situation, you
run two separate meshes, and duplicate packets to both meshs and
filter out duplicates at the other end. So maybe there are uses?

      Andrew

      reply	other threads:[~2009-08-24 13:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-23 13:09 [B.A.T.M.A.N.] [batman-adv] Use prinkt instead of debug_log Andrew Lunn
2009-08-23 13:54 ` Andrew Lunn
2009-08-24  9:02 ` Marek Lindner
2009-08-24 10:08   ` Andrew Lunn
2009-08-24 12:16     ` Marek Lindner
2009-08-24 13:05       ` Andrew Lunn [this message]

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=20090824130509.GP30255@ma.tech.ascom.ch \
    --to=andrew.lunn@ascom.ch \
    --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