Lines Matching refs:tmp
101 u32_t tmp = ntohl(f) + ((cp[1] << 8) | cp[2]); \
102 (f) = htonl(tmp); \
105 u32_t tmp = ntohl(f) + (u32_t)*cp++; \
106 (f) = htonl(tmp); \
112 u_short tmp = ntohs(f) + (((u_short)cp[1] << 8) | cp[2]); \
113 (f) = htons(tmp); \
116 u_short tmp = ntohs(f) + (u_short)*cp++; \
117 (f) = htons(tmp); \
471 u32_t tmp;
517 tmp = ntohl(th->ackno) + i;
518 th->ackno = htonl(tmp);
519 tmp = ntohl(th->seqno) + i;
520 th->seqno = htonl(tmp);
526 tmp = ntohl(th->seqno) + ntohs(IPH_LEN(&cs->cs_ip)) - cs->cs_hlen;
527 th->seqno = htonl(tmp);
572 tmp = n0->tot_len - vjlen + cs->cs_hlen;
573 IPH_LEN_SET(&cs->cs_ip, htons((u_short)tmp));
581 for (tmp = 0; hlen > 0; hlen -= 2) {
582 tmp += *bp++;
584 tmp = (tmp & 0xffff) + (tmp >> 16);
585 tmp = (tmp & 0xffff) + (tmp >> 16);
586 IPH_CHKSUM_SET(&cs->cs_ip, (u_short)(~tmp));