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.
diff --git a/src/tcp_act.c b/src/tcp_act.c
index b85cf28..a2ed7d0 100644
--- a/src/tcp_act.c
+++ b/src/tcp_act.c
@@ -68,9 +68,9 @@
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 @@
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 @@
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 @@
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: