Lines Matching refs:th
239 struct tcphdr *th, *oth; in slhc_compress() local
263 th = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4); in slhc_compress()
264 hlen = ip->ihl*4 + th->doff*4; in slhc_compress()
270 if(hlen > isize || th->syn || th->fin || th->rst || in slhc_compress()
271 ! (th->ack)){ in slhc_compress()
293 && th->source == cs->cs_tcp.source in slhc_compress()
294 && th->dest == cs->cs_tcp.dest) in slhc_compress()
351 || th->doff != cs->cs_tcp.doff in slhc_compress()
353 || (th->doff > 5 && memcmp(th+1,cs->cs_tcpopt,((th->doff)-5)*4) != 0)){ in slhc_compress()
363 if(th->urg){ in slhc_compress()
364 deltaS = ntohs(th->urg_ptr); in slhc_compress()
367 } else if(th->urg_ptr != oth->urg_ptr){ in slhc_compress()
374 if((deltaS = ntohs(th->window) - ntohs(oth->window)) != 0){ in slhc_compress()
378 if((deltaA = ntohl(th->ack_seq) - ntohl(oth->ack_seq)) != 0L){ in slhc_compress()
384 if((deltaS = ntohl(th->seq) - ntohl(oth->seq)) != 0L){ in slhc_compress()
430 if(th->psh) in slhc_compress()
435 csum = th->check; in slhc_compress()
437 memcpy(&cs->cs_tcp,th,20); in slhc_compress()
471 memcpy(&cs->cs_tcp,th,20); in slhc_compress()
474 if (th->doff > 5) in slhc_compress()
475 memcpy(cs->cs_tcpopt, th+1, ((th->doff) - 5) * 4); in slhc_compress()