[Kamailio-Devel] [ openser-Bugs-1934375 ] force_send_socket not working for TCP

SourceForge.net noreply at sourceforge.net
Wed Aug 6 17:09:37 CEST 2008


Bugs item #1934375, was opened at 2008-04-04 16:03
Message generated for change (Comment added) made by miconda
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1934375&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: ver 1.3.x
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Gawith (gawith)
>Assigned to: Daniel-Constantin Mierla (miconda)
Summary: force_send_socket not working for TCP

Initial Comment:
The force_send_socket call does not handle TCP connections correctly. It always uses the first outgoing IP address for all connections to a single host, ignoring the forced IP.

The problem seems to be in _tcpconn_find, which is not checking for the sending IP of existing connections to a host.

Attached a proposed patch.

Regards




----------------------------------------------------------------------

>Comment By: Daniel-Constantin Mierla (miconda)
Date: 2008-08-06 18:09

Message:
Logged In: YES 
user_id=1246013
Originator: NO

Patch updated and applied! Backport to 1.3.x will follow later.

----------------------------------------------------------------------

Comment By: Daniel-Constantin Mierla (miconda)
Date: 2008-08-06 16:58

Message:
Logged In: YES 
user_id=1246013
Originator: NO

I am just on it right now. Seems ok.

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2008-08-06 16:55

Message:
Logged In: NO 

IMO this patch looks useful.

klaus

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2008-04-04 16:18

Message:
Logged In: NO 

i don't know if this is related, but i use
force_send_socket(proxy_ip:5060) in order to force port 5060 as source
port, when proxy sends requests to udp destinations.  if destination is
behind tcp, proxy ignores port 5060 in force_send_socket(proxy_ip:5060) and
uses whatever source port the tcp connection to that destination has.  for
me this is the desired behavior.  i have not tried to use more than one
proxy_ip address.

-- juha

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1934375&group_id=139143



More information about the Devel mailing list