1398: win = (long)(int32_t)(tp->rcv_adv - tp->rcv_nxt);
1399: th->th_win = htons((u_int16_t) (win>>tp->rcv_scale));
1400: if (SEQ_GT(tp->snd_up, tp->snd_nxt)) {
1403: urp = IP_MAXPACKET;
1404: th->th_urp = htons((u_int16_t)urp);
1405: th->th_flags |= TH_URG;
1457: th->th_sum = in_cksum_addword(th->th_sum,
1458: htons((u_int16_t) (len + optlen)));
1459: }
1474: th->th_sum = in_cksum_addword(th->th_sum,
1475: htons((u_int16_t) (len + optlen)));
1476: }
1552: case AF_INET:
1553: ip->ip_len = htons(m->m_pkthdr.len);
1554: packetlen = m->m_pkthdr.len;