Lines Matching refs:ntohs
112 u_short tmp = ntohs(f) + (((u_short)cp[1] << 8) | cp[2]); \
116 u_short tmp = ntohs(f) + (u_short)*cp++; \
274 deltaS = ntohs(th->urgp); in vj_compress_tcp()
285 if ((deltaS = (u_short)(ntohs(th->wnd) - ntohs(oth->wnd))) != 0) { in vj_compress_tcp()
319 ntohs(IPH_LEN(&cs->cs_ip)) == hlen) { in vj_compress_tcp()
334 if (deltaS == deltaA && deltaS == ntohs(IPH_LEN(&cs->cs_ip)) - hlen) { in vj_compress_tcp()
342 if (deltaS == ntohs(IPH_LEN(&cs->cs_ip)) - hlen) { in vj_compress_tcp()
350 deltaS = (u_short)(ntohs(IPH_ID(ip)) - ntohs(IPH_ID(&cs->cs_ip))); in vj_compress_tcp()
362 deltaA = ntohs(th->chksum); in vj_compress_tcp()
515 register u32_t i = ntohs(IPH_LEN(&cs->cs_ip)) - cs->cs_hlen; in vj_uncompress_tcp()
526 tmp = ntohl(th->seqno) + ntohs(IPH_LEN(&cs->cs_ip)) - cs->cs_hlen; in vj_uncompress_tcp()
551 IPH_ID_SET(&cs->cs_ip, ntohs(IPH_ID(&cs->cs_ip)) + 1); in vj_uncompress_tcp()