Home
last modified time | relevance | path

Searched refs:tcph (Results 1 – 12 of 12) sorted by relevance

/mOS-networking-stack/core/src/
H A Ddebug.c133 if (tcph->syn) in DumpPacket()
135 if (tcph->fin) in DumpPacket()
137 if (tcph->ack) in DumpPacket()
139 if (tcph->rst) in DumpPacket()
143 if (tcph->ack) in DumpPacket()
191 if (tcph->syn) in DumpIPPacket()
193 if (tcph->fin) in DumpIPPacket()
195 if (tcph->ack) in DumpIPPacket()
197 if (tcph->rst) in DumpIPPacket()
201 if (tcph->ack) in DumpIPPacket()
[all …]
H A Dtcp.c120 pctx->p.tcph->source, NULL); in CreateMonitorStream()
201 const struct tcphdr* tcph = pctx->p.tcph; in CreateStream() local
203 if (tcph->syn && !tcph->ack) { in CreateStream()
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()
266 pctx->p.window = ntohs(tcph->window); in FillPacketContextTCPInfo()
414 struct tcphdr* tcph; in ProcessInTCPPacket() local
437 tcph->check, TCPCalcChecksum((uint16_t *)tcph, in ProcessInTCPPacket()
501 if (!tcph->rst) in ProcessInTCPPacket()
[all …]
H A Dtcp_out.c175 tcph->syn = TRUE; in SendTCPPacketStandalone()
177 tcph->fin = TRUE; in SendTCPPacketStandalone()
179 tcph->rst = TRUE; in SendTCPPacketStandalone()
181 tcph->psh = TRUE; in SendTCPPacketStandalone()
185 tcph->ack = TRUE; in SendTCPPacketStandalone()
216 tcph->check = TCPCalcChecksum((uint16_t *)tcph, in SendTCPPacketStandalone()
222 if (tcph->syn || tcph->fin) { in SendTCPPacketStandalone()
275 tcph->syn = TRUE; in SendTCPPacket()
350 tcph->check = TCPCalcChecksum((uint16_t *)tcph, in SendTCPPacket()
358 if (tcph->syn || tcph->fin) { in SendTCPPacket()
[all …]
H A Dtcp_in.c65 const struct tcphdr* tcph = pctx->p.tcph; in HandleActiveOpen() local
91 const struct tcphdr* tcph = pctx->p.tcph; in ValidateSequence() local
308 const struct tcphdr* tcph = pctx->p.tcph; in ProcessACK() local
704 const struct tcphdr* tcph = pctx->p.tcph; in Handle_TCP_ST_LISTEN() local
733 const struct tcphdr* tcph = pctx->p.tcph; in Handle_TCP_ST_SYN_SENT() local
827 const struct tcphdr* tcph = pctx->p.tcph; in Handle_TCP_ST_SYN_RCVD() local
908 const struct tcphdr* tcph = pctx->p.tcph; in Handle_TCP_ST_ESTABLISHED() local
999 const struct tcphdr* tcph = pctx->p.tcph; in Handle_TCP_ST_LAST_ACK() local
1058 const struct tcphdr* tcph = pctx->p.tcph; local
1171 const struct tcphdr* tcph = pctx->p.tcph; local
[all …]
H A Dmos_api.c442 to->tcph = from->tcph ? in ClonePacketCtx()
444 if (to->tcph) in ClonePacketCtx()
446 to->payload = from->tcph ? in ClonePacketCtx()
447 ((uint8_t *)(to->tcph) + (to->tcph->doff<<2)) : NULL; in ClonePacketCtx()
585 htonl(pkt->tcph->seq), htonl(pkt->tcph->ack_seq), in mtcp_sendpkt()
939 struct tcphdr *tcph; in mtcp_setlastpkt() local
1132 cur_pkt_ctx->p.payload = (uint8_t *)tcph + (tcph->doff<<2); in mtcp_setlastpkt()
1140 cur_pkt_ctx->p.payload = (uint8_t *)tcph + (tcph->doff<<2); in mtcp_setlastpkt()
1145 payload = (uint8_t *)tcph + (tcph->doff<<2); in mtcp_setlastpkt()
1190 tcph->check = 0; in mtcp_setlastpkt()
[all …]
H A Ddpdk_module.c541 struct tcphdr *tcph; in dpdk_dev_ioctl() local
564 tcph = (struct tcphdr *)((unsigned char *)iph + (iph->ihl<<2)); in dpdk_dev_ioctl()
566 tcph->check = rte_ipv4_phdr_cksum((struct ipv4_hdr *)iph, m->ol_flags); in dpdk_dev_ioctl()
H A Dapi.c958 struct tcphdr *tcph; in eval_bpf_5tuple() local
972 tcph = (struct tcphdr *)(iph + 1); in eval_bpf_5tuple()
973 tcph->source = sport; in eval_bpf_5tuple()
974 tcph->dest = dport; in eval_bpf_5tuple()
/mOS-networking-stack/samples/simple_firewall/
H A Dsimple_firewall.c347 p.tcph->source, p.tcph->dest); in ApplyActionPerFlow()
371 return (p.tcph->syn && !p.tcph->ack); in CatchInitSYN()
/mOS-networking-stack/core/src/include/
H A Dtcp.h9 FillPacketContextTCPInfo(struct pkt_ctx *pctx, struct tcphdr * tcph);
H A Dtcp_in.h126 const struct tcphdr *tcph, uint32_t seq, uint32_t ack_seq,
H A Dmos_api.h150 struct tcphdr *tcph; member
/mOS-networking-stack/core/include/
H A Dmos_api.h150 struct tcphdr *tcph; member