[MEDIUM] store the original destination address in the session
There are multiple places where the client's destination address is
required. Let's store it in the session when needed, and add a flag
to inform that it has been retrieved.
diff --git a/include/proto/client.h b/include/proto/client.h
index 3065b61..6540d09 100644
--- a/include/proto/client.h
+++ b/include/proto/client.h
@@ -2,7 +2,7 @@
include/proto/client.h
This file contains client-side definitions.
- Copyright (C) 2000-2006 Willy Tarreau - w@1wt.eu
+ Copyright (C) 2000-2007 Willy Tarreau - w@1wt.eu
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -24,7 +24,9 @@
#include <common/config.h>
#include <types/client.h>
+#include <types/session.h>
+void get_frt_addr(struct session *s);
int event_accept(int fd);