dest->ptr.v = NULL;
}
+static inline void set_target_client(struct target *dest)
+{
+ dest->type = TARG_TYPE_CLIENT;
+ dest->ptr.v = NULL;
+}
+
static inline void set_target_server(struct target *dest, struct server *s)
{
dest->type = TARG_TYPE_SERVER;
/* target types */
enum {
TARG_TYPE_NONE = 0, /* no target set, pointer is NULL by definition */
+ TARG_TYPE_CLIENT, /* target is a client, pointer is NULL by definition */
TARG_TYPE_PROXY, /* target is a proxy ; use address with the proxy's settings */
TARG_TYPE_SERVER, /* target is a server ; use address with server's and its proxy's settings */
TARG_TYPE_APPLET, /* target is an applet ; use only the applet */
s->si[0].proto = NULL;
s->si[0].release = NULL;
s->si[0].send_proxy_ofs = 0;
- clear_target(&s->si[0].target);
+ set_target_client(&s->si[0].target);
s->si[0].exp = TICK_ETERNITY;
s->si[0].flags = SI_FL_NONE;
if (s->fe->options2 & PR_O2_INDEPSTR)
s->si[0].proto = l->proto;
s->si[0].release = NULL;
s->si[0].send_proxy_ofs = 0;
- clear_target(&s->si[0].target);
+ set_target_client(&s->si[0].target);
s->si[0].exp = TICK_ETERNITY;
s->si[0].flags = SI_FL_NONE;