Lines Matching refs:u_short
79 if ((u_short)(n) >= 256) { \
89 if ((u_short)(n) >= 256 || (u_short)(n) == 0) { \
112 u_short tmp = ntohs(f) + (((u_short)cp[1] << 8) | cp[2]); \
116 u_short tmp = ntohs(f) + (u_short)*cp++; \
123 (f) = htons(((u_short)cp[1] << 8) | cp[2]); \
126 (f) = htons((u_short)*cp++); \
142 register u_short hlen = IPH_HL(ip);
145 register u_short deltaS, deltaA;
258 if (((u_short *)ip)[0] != ((u_short *)&cs->cs_ip)[0]
259 || ((u_short *)ip)[3] != ((u_short *)&cs->cs_ip)[3]
260 || ((u_short *)ip)[4] != ((u_short *)&cs->cs_ip)[4]
285 if ((deltaS = (u_short)(ntohs(th->wnd) - ntohs(oth->wnd))) != 0) {
294 deltaA = (u_short)deltaL;
303 deltaS = (u_short)deltaL;
350 deltaS = (u_short)(ntohs(IPH_ID(ip)) - ntohs(IPH_ID(&cs->cs_ip)));
374 deltaS = (u_short)(cp - new_seq);
450 cs->cs_hlen = (u_short)hlen;
469 u_short *bp;
560 vjlen = (u_short)(cp - (u_char*)n0->payload);
573 IPH_LEN_SET(&cs->cs_ip, htons((u_short)tmp));
579 bp = (u_short *) &cs->cs_ip;
586 IPH_CHKSUM_SET(&cs->cs_ip, (u_short)(~tmp));