p->l4.hdrs.tcph->th_dport = htons(f->dp);
p->l4.hdrs.tcph->th_seq = htonl(ssn->client.next_seq);
- p->l4.hdrs.tcph->th_ack = htonl(ssn->server.last_ack);
+ p->l4.hdrs.tcph->th_ack = 0;
/* to client */
} else {
p->l4.hdrs.tcph->th_dport = htons(f->sp);
p->l4.hdrs.tcph->th_seq = htonl(ssn->server.next_seq);
- p->l4.hdrs.tcph->th_ack = htonl(ssn->client.last_ack);
+ p->l4.hdrs.tcph->th_ack = 0;
}
if (FLOW_IS_IPV4(f)) {
* we care about reassembly here. */
if (p->flags & PKT_PSEUDO_STREAM_END) {
if (PKT_IS_TOCLIENT(p)) {
- ssn->client.last_ack = TCP_GET_RAW_ACK(tcph);
StreamTcpReassembleHandleSegment(tv, stt->ra_ctx, ssn, &ssn->server, p);
} else {
- ssn->server.last_ack = TCP_GET_RAW_ACK(tcph);
StreamTcpReassembleHandleSegment(tv, stt->ra_ctx, ssn, &ssn->client, p);
}
/* straight to 'skip' as we already handled reassembly */