Lines Matching defs:th
236 struct tcphdr *th, *oth;
260 th = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4);
261 hlen = ip->ihl*4 + th->doff*4;
267 if(hlen > isize || th->syn || th->fin || th->rst ||
268 ! (th->ack)){
290 && th->source == cs->cs_tcp.source
291 && th->dest == cs->cs_tcp.dest)
348 || th->doff != cs->cs_tcp.doff
350 || (th->doff > 5 && memcmp(th+1,cs->cs_tcpopt,((th->doff)-5)*4) != 0)){
360 if(th->urg){
361 deltaS = ntohs(th->urg_ptr);
364 } else if(th->urg_ptr != oth->urg_ptr){
371 if((deltaS = ntohs(th->window) - ntohs(oth->window)) != 0){
375 if((deltaA = ntohl(th->ack_seq) - ntohl(oth->ack_seq)) != 0L){
381 if((deltaS = ntohl(th->seq) - ntohl(oth->seq)) != 0L){
428 if(th->psh)
433 csum = th->check;
435 memcpy(&cs->cs_tcp,th,20);
469 memcpy(&cs->cs_tcp,th,20);
472 if (th->doff > 5)
473 memcpy(cs->cs_tcpopt, th+1, ((th->doff) - 5) * 4);