[Click] Re : Question

nguenga valery ngval2003 at yahoo.fr
Wed Aug 25 07:06:04 EDT 2010



Hi, 
it seems that to use FromHost, you will have a fake address(10.0.0.1/8) and a 
real address of machines(192.168.160.1/24), because, it seems when you send a 
packet from linux, router send it to default interface and you don't have the 
opportunity to get packet before it goes to network. I want to send packet via 
adhoc network(wifi) betweeen 10.0.0.1 and 10.0.0.5. and there is my new 
configuration
<<
to :: ToDevice(ath0)
src2 :: FromHost(fake0, 10.0.0.1) 
to2 :: ToHost

src2 -> fhcl :: Classifier(12/0806, 12/0800) -> ARPResponder (0/0 
00:01:02:03:04:05) -> to2

fhcl[1] -> StoreIPAddress(192.168.160.1, 12) -> SetIPAddress (192.168.160.5)
                                                               -> aq :: 
ARQuerier(192.168.160.1, ath0)
                                                               -> Queue -> to;   
    



fd :: FromDevice(ath0) -> fdcl :: Classifier(12/0886 20/0002, 12/0800, - )
                                -> t :: Tee -> [1]aq; t[1] -> to2
fdcl[2] -> to2

fdcl[1] -> ipc :: IPClassifier(src net 10.0.0.1/8)
          -> StoreIPAddress(10.0.0.1, 30)
          -> to2
>>
 Unfortunately, this configuration does not work.




________________________________
De : "iaaaguru at tce.edu" <iaaaguru at tce.edu>
À : nguenga valery <ngval2003 at yahoo.fr>
Envoyé le : Mer 25 août 2010, 5h 13min 29s
Objet : Re: [Click] Question

hope that ToDevice element is not used. use the click GUI clicky to verify
that your configuraion is free from errors. I tried ur configuration
but the trouter is not initializing. check for syntax of the elements
> Hi,
> My name is Tezo Valery and i am working with click in linux module. i
> write a
> config file like this :
>  
> <<
>  src :: FromDevice
> to :: ToDevice(ath0)
> src2 :: FromHost(fake0, 192.168.161.5) 
> to2 :: ToHost
> src -> Print(src) -> to2;
> src2 -> Print (src2) -> Queue -> Discard;
>  >>
>
> I want to discard packet which come from linux, but i could not, and when
> i run
> dmesg, i didn't see src2.
> I need your help to tell me what wrong.
>
> Thank you.
>
>
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>



-----------------------------------------
This email was sent using TCEMail Service.
Thiagarajar College of Engineering
Madurai-625 015, India


      


More information about the click mailing list