Lines Matching refs:ntohs
255 if (ip->protocol != IPPROTO_TCP || (ntohs(ip->frag_off) & 0x3fff)) { in slhc_compress()
370 deltaS = ntohs(th->urg_ptr); in slhc_compress()
380 if((deltaS = ntohs(th->window) - ntohs(oth->window)) != 0){ in slhc_compress()
406 ntohs(cs->cs_ip.tot_len) == hlen) in slhc_compress()
417 deltaS == ntohs(cs->cs_ip.tot_len) - hlen){ in slhc_compress()
424 if(deltaS == ntohs(cs->cs_ip.tot_len) - hlen){ in slhc_compress()
431 deltaS = ntohs(ip->id) - ntohs(cs->cs_ip.id); in slhc_compress()
553 i = ntohs(ip->tot_len) - hdrlen; in slhc_uncompress()
561 ntohs(ip->tot_len) - hdrlen); in slhc_uncompress()
577 thp->window = htons( ntohs(thp->window) + x); in slhc_uncompress()
597 ip->id = htons (ntohs (ip->id) + x); in slhc_uncompress()
599 ip->id = htons (ntohs (ip->id) + 1); in slhc_uncompress()