Lines Matching refs:m_len
237 if (n->m_len < sizeof(struct ip) + ICMP_MINLEN) in icmp_error()
241 if (n->m_len < oiphlen + ICMP_MINLEN) in icmp_error()
266 if (oiphlen + sizeof(struct tcphdr) > n->m_len && in icmp_error()
269 if (n->m_len < oiphlen + sizeof(struct tcphdr) && in icmp_error()
279 if (oiphlen + tcphlen > n->m_len && n->m_next == NULL) in icmp_error()
281 if (n->m_len < oiphlen + tcphlen && in icmp_error()
293 if (oiphlen + sizeof(struct sctphdr) > n->m_len && in icmp_error()
296 if (n->m_len < oiphlen + sizeof(struct sctphdr) && in icmp_error()
306 (n->m_len >= oiphlen + sizeof(struct sctphdr) + 8 || in icmp_error()
308 if (n->m_len < oiphlen + sizeof(struct sctphdr) + 8 && in icmp_error()
342 m->m_len = ICMP_MINLEN + icmplen; in icmp_error()
386 m->m_len += sizeof(struct ip); in icmp_error()
387 m->m_pkthdr.len = m->m_len; in icmp_error()
391 nip->ip_len = htons(m->m_len); in icmp_error()
495 if (m->m_len < i && (m = m_pullup(m, i)) == NULL) { in icmp_input()
500 m->m_len -= hlen; in icmp_input()
507 m->m_len += hlen; in icmp_input()
578 if (m->m_len < i && (m = m_pullup(m, i)) == NULL) { in icmp_input()
895 opts->m_len = sizeof(struct in_addr); in icmp_reflect()
902 optlen, opts->m_len); in icmp_reflect()
924 mtod(opts, caddr_t) + opts->m_len, len); in icmp_reflect()
925 opts->m_len += len; in icmp_reflect()
929 cnt = opts->m_len % 4; in icmp_reflect()
932 *(mtod(opts, caddr_t) + opts->m_len) = in icmp_reflect()
934 opts->m_len++; in icmp_reflect()
939 printf("%d\n", opts->m_len); in icmp_reflect()
1017 m->m_len -= hlen; in icmp_send()
1022 m->m_len += hlen; in icmp_send()