[Click] DSDV implementation in CLICK

gaurav dawra openapproject at hotmail.com
Tue Jun 22 02:01:10 EDT 2004


Hi

thanx john for the suggestion about compiling click linux modules, i did 
that successfully now.The modules are compiled click.o , proclikefs.o and 
click_wifi are loaded and can be seen using lsmod:

[root at localhost conf]# lsmod
Module                  Size  Used by    Not tainted
click                1837944   0  (unused)
click_wifi              2452   0  [click]
proclikefs              3728   3  [click]
lp                      9092   0  (autoclean)
parport                37088   0  (autoclean) [lp]
hostap_cs              51188   2
hostap                111048   0  [hostap_cs]
autofs                 13364   0  (autoclean) (unused)
ds                      8264   1  [hostap_cs]
i82365                 38016   1
pcmcia_core            44960   0  [hostap_cs ds i82365]
------------------------------------------------------------------------------------
I tried few examples like test.click, test2.click and test-device.click. I 
can fetch the packets using Fromdevice(eth0) and also from 
Fromdevice(wlan0).

My aim is to have three machines namely A,B and C. running with click 
software and acts as router.


(eth0)A(wlan0)<--->wlan0(B)eth0<==>Outside
		    |
		    |
		   wlan0(C)eth0 <==>Outside World

So if a packet	received on eth0 interface of "A" FOR wlan0 interface of "C". 
It may be forwarded. I tried to test it using the simple-dsr.click in conf 
directory of "click" distribution  but it gave me some errors. Please guide 
me in a direction on how to enable "any routing algo(dsr or dsdv) and also 
NAT is required for this. My Wlan0 has the IP address as : 10.1.2.X , and 
eth0 on each machine has IP address as 153.90.196.XX

Is there is some documention which can guide me through. How to get more 
understanding of the click routing software?

I have also configure and recompiled the modules with below configuration 
and also put "--enable-grid" in it, because it was written in 
simple-dsdv.click file that it require "--enable-grid" to work.

/home/jbicket/co/click/configure --enable-wifi --enable-kassert
  --disable-adaptive --enable grid --enable-linuxmodule --disable-userlevel
  --with-linux=xxxxx

when i do click-install simple-dsdv.click it gives me these ERRORS:
-----------------------------------------------------------------------------
simple-dsdv.click:49: unknown element class 'GridLocationInfo2'
simple-dsdv.click:51: unknown element class 'DSDVRouteTable'
simple-dsdv.click:57: unknown element class 'LookupLocalGridRoute2'
simple-dsdv.click:87: unknown element class 'GridEncap'
simple-dsdv.click:43: unknown element class 'CheckGridHeader'
simple-dsdv.click:25: unknown element class 'FixSrcLoc'
simple-dsdv.click:27: unknown element class 'SetGridChecksum'
simple-dsdv.click:83: While configuring 'from_host :: FromHost':
  argument 2 takes IP address prefix (destination IP prefix)
simple-dsdv.click:28: While configuring 'dev0/ToDevice at 10 :: ToDevice':
  unknown device `REAL_NET_DEVICE'
simple-dsdv.click:66: While configuring 'ip_demux :: IPClassifier':
  pattern 0: IP address missing in 'host' directive
  pattern 0: empty term near 'GRID_IP'
  pattern 0: garbage after expression at 'GRID_IP'
  pattern 1: IP prefix missing in 'net' directive
  pattern 1: empty term near 'GRID_NET1/GRID_NET1_NETMASK'
  pattern 1: garbage after expression at 'GRID_NET1/GRID_NET1_NETMASK'
  warning: pattern 0 matches no packets
  warning: pattern 1 matches no packets
simple-dsdv.click:70: While configuring 'grid_data_demux :: IPClassifier':
  pattern 0: IP address missing in 'host' directive
  pattern 0: empty term near 'GRID_IP'
  pattern 0: garbage after expression at 'GRID_IP'
  pattern 1: IP prefix missing in 'net' directive
  pattern 1: empty term near 'GRID_NET1/GRID_NET1_NETMASK'
  pattern 1: garbage after expression at 'GRID_NET1/GRID_NET1_NETMASK'
  warning: pattern 0 matches no packets
  warning: pattern 1 matches no packets
simple-dsdv.click:78: While configuring 'CheckIPHeader at 12 :: CheckIPHeader':
  argument 1 takes list of IP addresses (bad source addresses) 
[OFFSET_ENCAP_IP]
simple-dsdv.click:89: While configuring 'Strip at 22 :: Strip':
  argument 1 takes unsigned (number of bytes to strip)
simple-dsdv.click:39: While configuring 'FromGridDev at 8/FromDevice at 1 :: 
FromDevice':
  unknown device `REAL_NET_DEVICE'
simple-dsdv.click:41: While configuring 'FromGridDev at 8/Classifier at 3 :: 
Classifier':
  pattern 0: value has less than 2 hex digits
  pattern 0: expected a digit
simple-dsdv.click:42: While configuring 'FromGridDev at 8/HostEtherFilter at 4 :: 
HostEtherFilter':
  argument 1 takes Ethernet address (Ethernet address)
simple-dsdv.click:19: While configuring 'dev0/cl :: Classifier':
  pattern 0: expected a digit
simple-dsdv.click:59: While configuring 'grid_demux :: Classifier':
  pattern 0: expected a digit
Router could not be initialized!
--------------------------------------------------------------------------
How should i proceed to get this working.

Regards,

Gaurav

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



More information about the click mailing list