335: icmplen = oiplen + min(icmpreturndatabytes,
336: ntohs(oip->ip_len) - oiplen);
337: /*
475: */
476: icmplen = ntohs(ip->ip_len) - hlen;
477: #ifdef ICMPPRINTFS
915: */
916: ip->ip_len = htons(ntohs(ip->ip_len) - optlen);
917: ip->ip_hl = sizeof(struct ip) >> 2;
955: icp->icmp_cksum = 0;
956: icp->icmp_cksum = in_cksum(m, ntohs(ip->ip_len) - hlen);
957: m->m_data -= hlen;
1143: struct rtentry *rt;
1144: u_long mtu = ntohs(icp->icmp_nextmtu); /* Why a long? IPv6 */
1145: int error;
1176:
1177: mtu = ntohs(icp->icmp_ip.ip_len);
1178: /* Some 4.2BSD-based routers incorrectly adjust the ip_len */