[REORG] session: move client and server address to the stream interface
This will be needed very soon for the keep-alive.
diff --git a/include/proto/proto_tcp.h b/include/proto/proto_tcp.h
index 492efe4..8970561 100644
--- a/include/proto/proto_tcp.h
+++ b/include/proto/proto_tcp.h
@@ -46,10 +46,10 @@
static inline struct stktable_key *tcpv4_src_to_stktable_key(struct session *s)
{
/* right now we only support IPv4 */
- if (s->cli_addr.ss_family != AF_INET)
+ if (s->si[0].addr.c.from.ss_family != AF_INET)
return NULL;
- static_table_key.key = (void *)&((struct sockaddr_in *)&s->cli_addr)->sin_addr;
+ static_table_key.key = (void *)&((struct sockaddr_in *)&s->si[0].addr.c.from)->sin_addr;
return &static_table_key;
}