[Click] Socket Problem ?

Kurt Smolderen kurt.smolderen at ua.ac.be
Thu Feb 25 02:55:09 EST 2010


> soc15003::sockUDP(IPEM 192.168.1.222,IPRE 192.168.1.111,pEM 7769,pRE 7768)
> soc25002::sockUDP(IPEM 192.168.111,IPRE 192.168.1.222,pEM 7769,pRE 7768)
> 

In soc25002 you are trying to bind to IP address 192.168.111. This should probably be 192.168.1.111...

Regards

Kurt

On 24 Feb 2010, at 10:49, Rémi CLAVIER wrote:

> I suppose my problem is not really a click one but due to my
> misanderstanding of how the network run.
> I have two click router instances and I need to exchange data bidirectionally.
> 
> In a first timeI i try to instanciate two different instances of lcik
> on the same PC. It works fine
> 
> with for the first one
> 
> elementclass sockUDP{ IPEM $ipem,IPRE $ipre,pEM $pem,pRE $pre |
> input->Sem::Socket(UDP,$ipem,$pem)
> Sre::Socket(UDP,$ipre,$pre)->output
> 
> soc15002::sockUDP(IPEM 127.0.0.1,IPRE 127.0.0.1,pEM 7768,pRE 7769)
> soc15002->[0]DD1_3
> DD1_3[0]->soc15002
> soc15003::sockUDP(IPEM 127.0.0.1,IPRE 127.0.0.1,pEM 7769,pRE 7768)
> soc15003->[2]DD1_1
> DD1_1[2]->soc15003
> 
> and the second one
> 
> elementclass sockUDP{ IPEM $ipem,IPRE $ipre,pEM $pem,pRE $pre |
> input->Sem::Socket(UDP,$ipem,$pem)
> Sre::Socket(UDP,$ipre,$pre)->output
> 
> soc25002::sockUDP(IPEM 127.0.0.1,IPRE 127.0.0.1,pEM 7769,pRE 7768)
> soc25002->[0]DD1_3
> DD1_3[0]->soc25002
> soc25003::sockUDP(IPEM 127.0.0.1,IPRE 127.0.0.1,pEM 7768,pRE 7769)
> soc25003->[2]DD1_1
> DD1_1[2]->soc25003
> 
> It works fine but perhaps it's a easier way to do, thanks for tip..
> 
> When I want to run the two click configuration in defferent PC's To do
> that I change the IP adresses as
> 
> soc15003::sockUDP(IPEM 192.168.1.222,IPRE 192.168.1.111,pEM 7769,pRE 7768)
> soc25002::sockUDP(IPEM 192.168.111,IPRE 192.168.1.222,pEM 7769,pRE 7768)
> 
> And the result said
> 
> bind : cannot assign requested address....
> 
> May anyone help me ?
> 1)to fix my problem (/etc/resolf.conf, /etc/hosts ???)
> 2) to simplify my very hasardous implementation
> 
> Thanks a lot
> 
> Remi
> 
> 
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> 



More information about the click mailing list