mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
MINOR: tcp-act: Always access the stream-int via the conn-stream
To be able to move the stream-interface from the stream to the conn-stream, all access to the SI is done via the conn-stream. This patch is limited to the tcp-act part.
This commit is contained in:
parent
b91afea91c
commit
0de82720e7
1 changed files with 8 additions and 8 deletions
|
|
@ -68,9 +68,9 @@ static enum act_return tcp_action_req_set_src(struct act_rule *rule, struct prox
|
|||
|
||||
case ACT_F_TCP_REQ_CNT:
|
||||
case ACT_F_HTTP_REQ:
|
||||
if (!si_get_src(&s->si[0]))
|
||||
if (!si_get_src(cs_si(s->csf)))
|
||||
goto end;
|
||||
src = s->si[0].src;
|
||||
src = cs_si(s->csf)->src;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
@ -124,9 +124,9 @@ static enum act_return tcp_action_req_set_dst(struct act_rule *rule, struct prox
|
|||
|
||||
case ACT_F_TCP_REQ_CNT:
|
||||
case ACT_F_HTTP_REQ:
|
||||
if (!si_get_dst(&s->si[0]))
|
||||
if (!si_get_dst(cs_si(s->csf)))
|
||||
goto end;
|
||||
dst = s->si[0].dst;
|
||||
dst = cs_si(s->csf)->dst;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
@ -181,9 +181,9 @@ static enum act_return tcp_action_req_set_src_port(struct act_rule *rule, struct
|
|||
|
||||
case ACT_F_TCP_REQ_CNT:
|
||||
case ACT_F_HTTP_REQ:
|
||||
if (!si_get_src(&s->si[0]))
|
||||
if (!si_get_src(cs_si(s->csf)))
|
||||
goto end;
|
||||
src = s->si[0].src;
|
||||
src = cs_si(s->csf)->src;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
@ -236,9 +236,9 @@ static enum act_return tcp_action_req_set_dst_port(struct act_rule *rule, struct
|
|||
|
||||
case ACT_F_TCP_REQ_CNT:
|
||||
case ACT_F_HTTP_REQ:
|
||||
if (!si_get_dst(&s->si[0]))
|
||||
if (!si_get_dst(cs_si(s->csf)))
|
||||
goto end;
|
||||
dst = s->si[0].dst;
|
||||
dst = cs_si(s->csf)->dst;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in a new issue