diff options
author | des <des@FreeBSD.org> | 2003-04-08 14:25:47 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2003-04-08 14:25:47 +0000 |
commit | 567ac2b268739a751df819d1aa68404f430151cb (patch) | |
tree | a9d6dfe9fba9afa35e60736c6acc2bb7970ecd0a /sys/netinet/ip_output.c | |
parent | e105056ea61ca6ae4a0e93115e8916181e93be8b (diff) | |
download | FreeBSD-src-567ac2b268739a751df819d1aa68404f430151cb.zip FreeBSD-src-567ac2b268739a751df819d1aa68404f430151cb.tar.gz |
Introduce an M_ASSERTPKTHDR() macro which performs the very common task
of asserting that an mbuf has a packet header. Use it instead of hand-
rolled versions wherever applicable.
Submitted by: Hiten Pandya <hiten@unixdaemons.com>
Diffstat (limited to 'sys/netinet/ip_output.c')
-rw-r--r-- | sys/netinet/ip_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 478a0d5..c303c93 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -199,7 +199,7 @@ ip_output(m0, opt, ro, flags, imo, inp) } m = m0; - KASSERT(!m || (m->m_flags & M_PKTHDR) != 0, ("ip_output: no HDR")); + M_ASSERTPKTHDR(m); #ifndef FAST_IPSEC KASSERT(ro != NULL, ("ip_output: no route, proto %d", mtod(m, struct ip *)->ip_p)); |