On Oct 31, 2009 at 08:01, Juha Heinanen jh@tutpro.com wrote:
Andrei Pelinescu-Onciul writes:
It should work out of the box without any force_send_socket, if I understand you correctly. The source ip will be 127.0.0.1 only if you send to 127.0.0.1 (or if you have some strange routing table). If you skip the force_send_socket(), the IP in Via & RR will be the IP of the first listen address that is not localhost or mcast.
ok, i'll give it a try. how about the port? will it be the port associated with that listening ip?
No, the source port will be dynamic (one cannot use a port on which it also listens on TCP, at least not without kernel changes :-)). The port in Via, will be the port associated with the listening ip (in fact with the first socket with that listen ip, in case you have more of them).
Andrei