Changes between Version 1 and Version 2 of doc/gateway-server/WifiDogAndOlsr

Show
Ignore:
Timestamp:
05/13/06 14:50:29 (14 years ago)
Author:
Lucifer D ( Luffy )
Comment:

This scripts is tested and works well

Legend:

Unmodified
Added
Removed
Modified
  • doc/gateway-server/WifiDogAndOlsr

    v1 v2  
    77 
    88Install Wifidog on all the OLSR nodes. 
    9 Allow HTTP flow between OLSR nodes with a script launched by cron. 
     9Allow HTTP flow between OLSR nodes with the following script launched by cron on all the nodes. 
    1010 
    1111{{{ 
     
    2525cat > /tmp/get_neighbors.awk <<__HERE1__ 
    2626BEGIN { 
    27   while("ip route"|getline) { 
    28       if (\$6 == "metric") { 
    29         if (\$7 > 0) { 
    30           printf "%s\n", \$1; 
     27 while("route -n"|getline) { 
     28    if (/^[0-9]/) { 
     29        if (0 < \$5) { 
     30           if (\$3 == "255.255.255.255 <http://255.255.255.255>") { 
     31             printf "%s\n", \$1; 
     32                 } 
     33               } 
     34             } 
     35           } 
    3136        } 
    32     } 
    33   } 
    34 } 
    3537__HERE1__ 
    3638 
     
    5658}}} 
    5759 
    58 I modify the original script from Bruce Simpson. I replace the orginal "route -n" with an "ip route". 
     60The original script from Bruce Simpson with minor modifications from Wifidog 
    5961Thanks to the author !! And London Wireless !