Lines Matching refs:th
239 struct tcphdr *th, *oth; in slhc_compress() local
264 if (isize < nlen + sizeof(*th)) in slhc_compress()
267 th = (struct tcphdr *)(icp + nlen); in slhc_compress()
268 if (th->doff < sizeof(struct tcphdr) / 4) in slhc_compress()
270 hlen = nlen + th->doff * 4; in slhc_compress()
276 if(hlen > isize || th->syn || th->fin || th->rst || in slhc_compress()
277 ! (th->ack)){ in slhc_compress()
299 && th->source == cs->cs_tcp.source in slhc_compress()
300 && th->dest == cs->cs_tcp.dest) in slhc_compress()
357 || th->doff != cs->cs_tcp.doff in slhc_compress()
359 || (th->doff > 5 && memcmp(th+1,cs->cs_tcpopt,((th->doff)-5)*4) != 0)){ in slhc_compress()
369 if(th->urg){ in slhc_compress()
370 deltaS = ntohs(th->urg_ptr); in slhc_compress()
373 } else if(th->urg_ptr != oth->urg_ptr){ in slhc_compress()
380 if((deltaS = ntohs(th->window) - ntohs(oth->window)) != 0){ in slhc_compress()
384 if((deltaA = ntohl(th->ack_seq) - ntohl(oth->ack_seq)) != 0L){ in slhc_compress()
390 if((deltaS = ntohl(th->seq) - ntohl(oth->seq)) != 0L){ in slhc_compress()
436 if(th->psh) in slhc_compress()
441 csum = th->check; in slhc_compress()
443 memcpy(&cs->cs_tcp,th,20); in slhc_compress()
477 memcpy(&cs->cs_tcp,th,20); in slhc_compress()
480 if (th->doff > 5) in slhc_compress()
481 memcpy(cs->cs_tcpopt, th+1, ((th->doff) - 5) * 4); in slhc_compress()