[REORG] tcp: make tcpv4_connect_server() take the target address from the SI
The address is now available in the stream interface, no need to pass it by
argument.
diff --git a/include/proto/proto_tcp.h b/include/proto/proto_tcp.h
index 8970561..3baed1f 100644
--- a/include/proto/proto_tcp.h
+++ b/include/proto/proto_tcp.h
@@ -31,8 +31,7 @@
void tcpv4_add_listener(struct listener *listener);
void tcpv6_add_listener(struct listener *listener);
int tcpv4_connect_server(struct stream_interface *si,
- struct proxy *be, struct server *srv,
- struct sockaddr *srv_addr, struct sockaddr *from_addr);
+ struct proxy *be, struct server *srv);
int tcp_inspect_request(struct session *s, struct buffer *req, int an_bit);
int tcp_inspect_response(struct session *s, struct buffer *rep, int an_bit);
int tcp_persist_rdp_cookie(struct session *s, struct buffer *req, int an_bit);
diff --git a/include/types/stream_interface.h b/include/types/stream_interface.h
index 7bafce3..ea7b266 100644
--- a/include/types/stream_interface.h
+++ b/include/types/stream_interface.h
@@ -108,8 +108,7 @@
void (*shutw)(struct stream_interface *); /* shutw function */
void (*chk_rcv)(struct stream_interface *);/* chk_rcv function */
void (*chk_snd)(struct stream_interface *);/* chk_snd function */
- int (*connect)(struct stream_interface *, struct proxy *, struct server *,
- struct sockaddr *, struct sockaddr *); /* connect function if any */
+ int (*connect)(struct stream_interface *, struct proxy *, struct server *); /* connect function if any */
void (*release)(struct stream_interface *); /* handler to call after the last close() */
/* struct members below are the "remote" part, as seen from the buffer side */