summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarr <arr@FreeBSD.org>2002-05-20 21:50:39 +0000
committerarr <arr@FreeBSD.org>2002-05-20 21:50:39 +0000
commit6fe64080f2001cfff44e5b96534771c4b6405fcb (patch)
tree88192ac15931b61af13407d29a7f321d8d821afe
parentcaf5f38789241ea295dae2dd1168d7f54a123a77 (diff)
downloadFreeBSD-src-6fe64080f2001cfff44e5b96534771c4b6405fcb.zip
FreeBSD-src-6fe64080f2001cfff44e5b96534771c4b6405fcb.tar.gz
- Turn a #ifdef DIAGNOSTIC to #ifdef INVARIANTS as the code from this line
through the #endif is really a sanity check. Reviewed by: jake
-rw-r--r--sys/netinet/ip_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 3627832..f0cf8fa 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -309,7 +309,7 @@ ip_input(struct mbuf *m)
} else
rule = NULL ;
-#ifdef DIAGNOSTIC
+#ifdef INVARIANTS
if (m == NULL || (m->m_flags & M_PKTHDR) == 0)
panic("ip_input no HDR");
#endif
OpenPOWER on IntegriCloud