Browse code

- support for setting the source address in tcp_send() and tcpconn_get() (should allow for a better tcp force_send_socket() in the future) - add multiple aliases for each connection, to cover all the search possiblities: (dst_ip, dst_port), (local_ip, dst_ip, dst_port), (local_ip, local_port, dst_ip, dst_port). - improved connection hash function

Andrei Pelinescu-Onciul authored on 01/08/2007 00:05:40
Showing 1 changed files
... ...
@@ -71,7 +71,7 @@ struct tcp_connection* get_cur_connection(struct sip_msg* msg)
71 71
 		return 0;
72 72
 	}
73 73
 
74
-	c = tcpconn_get(msg->rcv.proto_reserved1, 0, 0, tls_con_lifetime);
74
+	c = tcpconn_get(msg->rcv.proto_reserved1, 0, 0, 0, tls_con_lifetime);
75 75
 	if (c && c->type != PROTO_TLS) {
76 76
 		ERR("Connection found but is not TLS\n");
77 77
 		tcpconn_put(c);