Lines Matching refs:tcph

94 			pctx->p.iph->daddr, pctx->p.tcph->dest,   in CreateServerStream()
95 pctx->p.iph->saddr, pctx->p.tcph->source, NULL); in CreateServerStream()
105 ParseTCPOptions(cur_stream, pctx->p.cur_ts, (uint8_t *)pctx->p.tcph + in CreateServerStream()
106 TCP_HEADER_LEN, (pctx->p.tcph->doff << 2) - TCP_HEADER_LEN); in CreateServerStream()
119 pctx->p.tcph->dest, pctx->p.iph->saddr, in CreateMonitorStream()
120 pctx->p.tcph->source, NULL); in CreateMonitorStream()
174 (uint8_t *)pctx->p.tcph + TCP_HEADER_LEN, in CreateMonitorStream()
175 (pctx->p.tcph->doff << 2) - TCP_HEADER_LEN); in CreateMonitorStream()
186 temp_stream.sport = pctx->p.tcph->dest; in FindStream()
188 temp_stream.dport = pctx->p.tcph->source; in FindStream()
201 const struct tcphdr* tcph = pctx->p.tcph; in CreateStream() local
203 if (tcph->syn && !tcph->ack) { in CreateStream()
206 stream_type = DetectStreamType(mtcp, pctx, iph->daddr, tcph->dest); in CreateStream()
231 pctx->p.iph->saddr, pctx->p.tcph->source, in CreateStream()
232 pctx->p.iph->daddr, pctx->p.tcph->dest, in CreateStream()
259 FillPacketContextTCPInfo(struct pkt_ctx *pctx, struct tcphdr * tcph) in FillPacketContextTCPInfo() argument
261 pctx->p.tcph = tcph; in FillPacketContextTCPInfo()
262 pctx->p.payload = (uint8_t *)tcph + (tcph->doff << 2); in FillPacketContextTCPInfo()
264 pctx->p.seq = ntohl(tcph->seq); in FillPacketContextTCPInfo()
265 pctx->p.ack_seq = ntohl(tcph->ack_seq); in FillPacketContextTCPInfo()
266 pctx->p.window = ntohs(tcph->window); in FillPacketContextTCPInfo()
325 pctx->p.iph->saddr, pctx->p.tcph->source, in UpdateMonitor()
326 pctx->p.iph->daddr, pctx->p.tcph->dest)) == NULL) { in UpdateMonitor()
337 (uint8_t *)pctx->p.tcph + TCP_HEADER_LEN, in UpdateMonitor()
338 (pctx->p.tcph->doff << 2) - TCP_HEADER_LEN); in UpdateMonitor()
414 struct tcphdr* tcph; in ProcessInTCPPacket() local
419 tcph = (struct tcphdr *)((u_char *)pctx->p.iph + (pctx->p.iph->ihl << 2)); in ProcessInTCPPacket()
421 FillPacketContextTCPInfo(pctx, tcph); in ProcessInTCPPacket()
429 if (pctx->p.ip_len < ((iph->ihl + tcph->doff) << 2)) in ProcessInTCPPacket()
433 if (TCPCalcChecksum((uint16_t *)pctx->p.tcph, in ProcessInTCPPacket()
434 (tcph->doff << 2) + pctx->p.payloadlen, in ProcessInTCPPacket()
437 tcph->check, TCPCalcChecksum((uint16_t *)tcph, in ProcessInTCPPacket()
438 (tcph->doff << 2) + pctx->p.payloadlen, in ProcessInTCPPacket()
501 if (!tcph->rst) in ProcessInTCPPacket()
504 iph->daddr, tcph->dest, iph->saddr, tcph->source, in ProcessInTCPPacket()