Lines Matching refs:oiphlen
215 unsigned icmplen, icmpelen, nlen, oiphlen; in icmp_error() local
238 oiphlen = oip->ip_hl << 2; in icmp_error()
239 if (n->m_len < oiphlen + ICMP_MINLEN) in icmp_error()
249 oiphlen))->icmp_type)) { in icmp_error()
264 if (oiphlen + sizeof(struct tcphdr) > n->m_len && in icmp_error()
267 if (n->m_len < oiphlen + sizeof(struct tcphdr) && in icmp_error()
268 (n = m_pullup(n, oiphlen + sizeof(struct tcphdr))) == NULL) in icmp_error()
271 th = mtodo(n, oiphlen); in icmp_error()
275 if (ntohs(oip->ip_len) < oiphlen + tcphlen) in icmp_error()
277 if (oiphlen + tcphlen > n->m_len && n->m_next == NULL) in icmp_error()
279 if (n->m_len < oiphlen + tcphlen && in icmp_error()
280 (n = m_pullup(n, oiphlen + tcphlen)) == NULL) in icmp_error()
284 ntohs(oip->ip_len) - oiphlen)); in icmp_error()
289 if (ntohs(oip->ip_len) < oiphlen + sizeof(struct sctphdr)) in icmp_error()
291 if (oiphlen + sizeof(struct sctphdr) > n->m_len && in icmp_error()
294 if (n->m_len < oiphlen + sizeof(struct sctphdr) && in icmp_error()
295 (n = m_pullup(n, oiphlen + sizeof(struct sctphdr))) == NULL) in icmp_error()
299 min(V_icmp_quotelen, ntohs(oip->ip_len) - oiphlen)); in icmp_error()
300 sh = mtodo(n, oiphlen); in icmp_error()
302 ntohs(oip->ip_len) >= oiphlen + in icmp_error()
304 (n->m_len >= oiphlen + sizeof(struct sctphdr) + 8 || in icmp_error()
306 if (n->m_len < oiphlen + sizeof(struct sctphdr) + 8 && in icmp_error()
307 (n = m_pullup(n, oiphlen + in icmp_error()
311 sh = mtodo(n, oiphlen); in icmp_error()
316 oiphlen)); in icmp_error()
321 oiphlen)); in icmp_error()
323 icmplen = min(oiphlen + icmpelen, nlen); in icmp_error()