[Click] Socket Problem ?

Rémi CLAVIER remi.clavier at orange.fr
Wed Feb 24 04:49:43 EST 2010


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




More information about the click mailing list