[Xorp-hackers] TCP connection

Pavlin Radoslavov pavlin at ICSI.Berkeley.EDU
Fri Mar 20 10:06:34 PDT 2009


illidan <illidan at lineway.net> wrote:

> Hello.
> 
> I'm writing a routing protocol in Xorp, and I use socket4 library.
> 
> I use tcp connection, so I used "send_tcp_open_bind_connect" function.
> But I get a little problem with this function, It ask two local 
> arguments : IP and Port.
> 
> But in my case, I don't use the local socket which is open with this 
> function ( I have already another connection running ).
> And my routers in general have more than one interface, which means more 
> than one local IP.
> 
> Would it be possible to create a TCP connection without create a local 
> socket like this?

Try setting the local_addr and local_port to zero.

Regards,
Pavlin

> Thanks for your help.
> 
> Best regards,
> Michael
> 
> _______________________________________________
> Xorp-hackers mailing list
> Xorp-hackers at icir.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers



More information about the Xorp-hackers mailing list