[Olsr-dev] Smartgateway

Teco Boot (spam-protected)
Thu Dec 8 20:33:33 CET 2011


Another problem. 

I have a 3 node network:
 173  (is gw)
 179
 166

179 was GW before (days ago).

179 and 166 have a tunnel to 173 (OK).

173 has still selected 179 as GW. It should deselect and 
delete the tunnel, because 179 withdrawn the HNA. 

Cleanup should be performed in olsr_delete_gateway_entry in hna_set.c
No idea why is is still there.
Maybe move the cleanup in the regular GW selection routine?
Condition: current GW must have valid path and must have the SGW HNA entry.


173:
====
(spam-protected):~# olsr -g
Table: Gateways
Status  Gateway IP      ETX     Hopcnt  Uplink  Downlnk IPv4    IPv6    Prefix
s-      172.31.175.179  1.000   1       120     1000    ipv4(n) -       -

(spam-protected):~# olsr -h
Table: HNA
Destination     Gateway
192.0.0.0/2     172.31.175.173
128.0.0.0/2     172.31.175.173
64.0.0.0/2      172.31.175.173
0.0.0.0/2       172.31.175.173
0.0.0.0/0       172.31.175.173
10.175.173.0/24 172.31.175.173
10.175.166.0/24 172.31.175.166
10.175.179.0/24 172.31.175.179

SmartGateway client tunnel:
tnl_b3af1fac Link encap:IPIP Tunnel  HWaddr   
          inet addr:172.31.175.173  P-t-P:172.31.175.173  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


179:
====
(spam-protected):~# olsr -g
Table: Gateways
Status  Gateway IP      ETX     Hopcnt  Uplink  Downlnk IPv4    IPv6    Prefix
s-      172.31.175.173  1.000   1       120     1000    ipv4(n) -       -

(spam-protected):~# olsr -h
Table: HNA
Destination     Gateway
10.175.179.0/24 172.31.175.179
10.175.166.0/24 172.31.175.166
0.0.0.0/0       172.31.175.173
10.175.173.0/24 172.31.175.173
0.0.0.0/2       172.31.175.173
64.0.0.0/2      172.31.175.173
128.0.0.0/2     172.31.175.173
192.0.0.0/2     172.31.175.173

SmartGateway client tunnel:
tnl_adaf1fac Link encap:IPIP Tunnel  HWaddr   
          inet addr:172.31.175.179  P-t-P:172.31.175.179  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


166:
====
(spam-protected):~# olsr -g
Table: Gateways
Status  Gateway IP      ETX     Hopcnt  Uplink  Downlnk IPv4    IPv6    Prefix
s-      172.31.175.173  1.000   1       120     1000    ipv4(n) -       -

(spam-protected):~# olsr -h
Table: HNA
Destination     Gateway
10.175.166.0/24 172.31.175.166
10.175.173.0/24 172.31.175.173
0.0.0.0/0       172.31.175.173
0.0.0.0/2       172.31.175.173
64.0.0.0/2      172.31.175.173
128.0.0.0/2     172.31.175.173
192.0.0.0/2     172.31.175.173
10.175.179.0/24 172.31.175.179

SmartGateway client tunnel:
tnl_adaf1fac Link encap:IPIP Tunnel  HWaddr   
          inet addr:172.31.175.166  P-t-P:172.31.175.166  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


Teco





More information about the Olsr-dev mailing list