On Wed, 2008-09-10 at 12:42 +0200, Henning Rogge wrote:
> On Wed, Sep 10, 2008 at 11:38, Joerg Pommnitz <pommnitz@yahoo.com> wrote:
> > Hello all,
> > while researching on how to set the TTL for IPv6 multicast messages
> > I found out some things that would be useful for olsrd.
> > Currently olsrd opens and binds sockets to each interface it feels
> > responsible for.
> > Under Linux (and probably other unixish systems) there is an alternativ
> > to this.
> >
> > Sending packets on a specific interface:
> >
> > use sendmsg(2) and add a control message of type IP_PKTINFO to the
> > outbound message. The data part of the control message is of type
> > struct in_pktinfo where you can specify the desired interface index in
> > the ipi_ifindex memeber. Additionally one would probably need to set the
> > MSG_DONT_ROUTE flag.
> > For IPv6 it might even be simpler: the sockaddr_in6 has a sin6_scope_id
> > which is just the interface index.
> This part is not very interesting for OLSR because OLSR only sends
> broadcast packages.

But it's good to know that no functionality/possibilities are lost -
even if one doesn't need it right know.

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services




