On Mon, 2008-06-23 at 19:34 +0200, Giovanni Di Stasi wrote:
> Il Monday 23 June 2008 19:16:33 Henning Rogge ha scritto:
> > On Mon, Jun 23, 2008 at 18:40, Giovanni Di Stasi <gdistasi@gmail.com> wrote:
> > > Hi again.
> > > what I'd like to do is expressed well by the following passage of the rfc
> > > 3626:
> > >
> > > "If sufficient information is provided by the link-layer, this
> > > may be utilized to populate the local link set instead of HELLO
> > > message exchange."
> >
> > Theoretically you can run OLSR completely on layer 2 (with MACs
> > instead of IP addresses)
> 
> Yes, but I suppose that that wouldn't be an easy change, would it?

That depends what you mean in detail:
- change/extend OLSRD source code to use 6 byte MAC addresses: IMHO
  pretty straightforward - just add the third case to all the IPV4/IPv6
  if()s and switch()es etc.
- run it as a kernel driver in kernel space: you are right, that's IMHO
  not easy (for various reasons - IMHO mostly because the OLSRD source
  looks like typical application software).
IMHO it's much easier to get the layer 2 packets into the user space
(most simple with a raw socket and a LPF rule[0]) into a patched OLSRD
and make OLSRD send the answers back (as now everyone can send raw layer
2 packets from user-space[0]).

	Bernd

[0]: Similar to the ISC-DHCPD.
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services



