[Olsr-dev] SmartGateway: 1: no tunnel being set up to SGW server / 2: stale SGW tunnel

Teco Boot (spam-protected)
Fri Oct 14 18:30:24 CEST 2011


Op 14 okt 2011, om 17:17 heeft Markus Kittenberger het volgende geschreven:
> On Fri, Oct 14, 2011 at 3:55 PM, Teco Boot <(spam-protected)> wrote:
> On 1: no tunnel being set up to SGW server:
> 
> When no gateway is in the network anymore, gw list is empty. Tunnels
> are cleaned up. After a gateway got back, no new tunnel is set up.
> Looks like a bug.
> but this behaviour sounds sane,.. 
> 
> (but hmm i did not fully read everything in this thread,..)
I can put some debug syslog writes around a gw check.
I see what I can do.

> Markus
> 
> p.s. but not cleaning up tunnel on exit (did u kill it?) is bad,..
No. Nice shutdown. All state is cleaned up, except the tunl0.


> and trying to add a route that exists (does not necesarrily harm, but should be looked into)
It is adding an address.


> p.p.s 
> >I have the netlink error message on almost all my nodes. Update the message so that it tells us which route is duplicate?
> usually this messages comes together with a second one telling you which route it was,.. (hmm did u compile out (too many) error messages?)
Yes. The msg is not catched by the code.

I send a syslog msg just before it happens:
static int
olsr_add_ip(int ifindex, union olsr_ip_addr *ip, const char *l, bool create)
{
 ......
  if (1) {
    struct ipaddr_str buf1;
    olsr_syslog(OLSR_LOG_INFO,"olsr_add_ip: call olsr_netlink_send for ifindex %i, address %s", ifindex, olsr_ip_to_string(&buf1, ip));
  }
  return olsr_netlink_send(&req.n);
}

Oct 14 11:35:55 AHR-175-166 olsrd[19324]: olsr_add_ip: call olsr_netlink_send for ifindex 25, address 172.31.175.166
Oct 14 11:35:55 AHR-175-166 olsrd[19324]: olsr_netlink_send: just before checking l_err->error
Oct 14 11:35:55 AHR-175-166 olsrd[19324]: Received netlink error code File exists (-17)


Anther side effect:
When there is a condition that there is no smartgw selected (and no tunnel), and olsrd is stopped (OK), the next time olsrd is started it fails.
With olsrd -d 1:
OLSR EXIT: Cannot initialize gateway tunnels
Terminated



Teco


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20111014/e4babd13/attachment.html>


More information about the Olsr-dev mailing list