Lines Matching refs:tcph
69 struct tcphdr *tcph; in DumpPacket() local
101 tcph = (struct tcphdr *)((uint32_t *)iph + iph->ihl); in DumpPacket()
133 if (tcph->syn) in DumpPacket()
135 if (tcph->fin) in DumpPacket()
137 if (tcph->ack) in DumpPacket()
139 if (tcph->rst) in DumpPacket()
142 thread_printf(mtcp, mtcp->log_fp, "seq %u ", ntohl(tcph->seq)); in DumpPacket()
143 if (tcph->ack) in DumpPacket()
144 thread_printf(mtcp, mtcp->log_fp, "ack %u ", ntohl(tcph->ack_seq)); in DumpPacket()
145 thread_printf(mtcp, mtcp->log_fp, "WDW=%u ", ntohs(tcph->window)); in DumpPacket()
162 struct tcphdr *tcph; in DumpIPPacket() local
166 tcph = (struct tcphdr *)((uint32_t *)iph + iph->ihl); in DumpIPPacket()
191 if (tcph->syn) in DumpIPPacket()
193 if (tcph->fin) in DumpIPPacket()
195 if (tcph->ack) in DumpIPPacket()
197 if (tcph->rst) in DumpIPPacket()
200 thread_printf(mtcp, mtcp->log_fp, "seq %u ", ntohl(tcph->seq)); in DumpIPPacket()
201 if (tcph->ack) in DumpIPPacket()
202 thread_printf(mtcp, mtcp->log_fp, "ack %u ", ntohl(tcph->ack_seq)); in DumpIPPacket()
203 thread_printf(mtcp, mtcp->log_fp, "WDW=%u ", ntohs(tcph->window)); in DumpIPPacket()
220 struct tcphdr *tcph; in DumpIPPacketToFile() local
224 tcph = (struct tcphdr *)((uint32_t *)iph + iph->ihl); in DumpIPPacketToFile()
249 if (tcph->syn) in DumpIPPacketToFile()
251 if (tcph->fin) in DumpIPPacketToFile()
253 if (tcph->ack) in DumpIPPacketToFile()
255 if (tcph->rst) in DumpIPPacketToFile()
258 fprintf(fout, "seq %u ", ntohl(tcph->seq)); in DumpIPPacketToFile()
259 if (tcph->ack) in DumpIPPacketToFile()
260 fprintf(fout, "ack %u ", ntohl(tcph->ack_seq)); in DumpIPPacketToFile()
261 fprintf(fout, "WDW=%u ", ntohs(tcph->window)); in DumpIPPacketToFile()