diff options
| author | Andrew R. Reiter <arr@FreeBSD.org> | 2002-05-21 18:52:24 +0000 |
|---|---|---|
| committer | Andrew R. Reiter <arr@FreeBSD.org> | 2002-05-21 18:52:24 +0000 |
| commit | db40007d42fa5f449ed312499635957a39a21d03 (patch) | |
| tree | 3a864b73f84ee96f800b6e857658551c76ef181c /sys/netinet/ip_input.c | |
| parent | 720bbc82448654b1407058ae6b3ffd7fd9acfd44 (diff) | |
Notes
Diffstat (limited to 'sys/netinet/ip_input.c')
| -rw-r--r-- | sys/netinet/ip_input.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index f0cf8fa4f5dfb..b33bc5bdf36fc 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -309,10 +309,9 @@ ip_input(struct mbuf *m) } else rule = NULL ; -#ifdef INVARIANTS - if (m == NULL || (m->m_flags & M_PKTHDR) == 0) - panic("ip_input no HDR"); -#endif + KASSERT(m != NULL && (m->m_flags & M_PKTHDR) != 0, + ("ip_input: no HDR")); + ipstat.ips_total++; if (m->m_pkthdr.len < sizeof(struct ip)) |
