Lines Matching refs:oiphlen
217 unsigned icmplen, icmpelen, nlen, oiphlen; in icmp_error() local
240 oiphlen = oip->ip_hl << 2; in icmp_error()
241 if (n->m_len < oiphlen + ICMP_MINLEN) in icmp_error()
251 oiphlen))->icmp_type)) { 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()
270 (n = m_pullup(n, oiphlen + sizeof(struct tcphdr))) == NULL) in icmp_error()
273 th = mtodo(n, oiphlen); in icmp_error()
277 if (ntohs(oip->ip_len) < oiphlen + tcphlen) 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()
282 (n = m_pullup(n, oiphlen + tcphlen)) == NULL) in icmp_error()
286 ntohs(oip->ip_len) - oiphlen)); in icmp_error()
291 if (ntohs(oip->ip_len) < oiphlen + sizeof(struct sctphdr)) 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()
297 (n = m_pullup(n, oiphlen + sizeof(struct sctphdr))) == NULL) in icmp_error()
301 min(V_icmp_quotelen, ntohs(oip->ip_len) - oiphlen)); in icmp_error()
302 sh = mtodo(n, oiphlen); in icmp_error()
304 ntohs(oip->ip_len) >= oiphlen + 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()
309 (n = m_pullup(n, oiphlen + in icmp_error()
313 sh = mtodo(n, oiphlen); in icmp_error()
318 oiphlen)); in icmp_error()
323 oiphlen)); in icmp_error()
325 icmplen = min(oiphlen + icmpelen, nlen); in icmp_error()