Lines Matching refs:ntohs
253 if (ip->protocol != IPPROTO_TCP || (ntohs(ip->frag_off) & 0x3fff)) { in slhc_compress()
364 deltaS = ntohs(th->urg_ptr); in slhc_compress()
374 if((deltaS = ntohs(th->window) - ntohs(oth->window)) != 0){ in slhc_compress()
400 ntohs(cs->cs_ip.tot_len) == hlen) in slhc_compress()
411 deltaS == ntohs(cs->cs_ip.tot_len) - hlen){ in slhc_compress()
418 if(deltaS == ntohs(cs->cs_ip.tot_len) - hlen){ in slhc_compress()
425 deltaS = ntohs(ip->id) - ntohs(cs->cs_ip.id); in slhc_compress()
543 i = ntohs(ip->tot_len) - hdrlen; in slhc_uncompress()
551 ntohs(ip->tot_len) - hdrlen); in slhc_uncompress()
567 thp->window = htons( ntohs(thp->window) + x); in slhc_uncompress()
587 ip->id = htons (ntohs (ip->id) + x); in slhc_uncompress()
589 ip->id = htons (ntohs (ip->id) + 1); in slhc_uncompress()