Re: git: 17cbcf33c3b6 - main - mbuf(9): Assert receive mbufs don't carry a send tag.
Date: Thu, 27 Jan 2022 16:13:10 UTC
On Thu, Jan 27, 2022 at 09:29:51AM +0100, Hans Petter Selasky wrote: H> On 1/27/22 06:16, Gleb Smirnoff wrote: H> > Why do you allow (m == NULL) in the assertion? Does it make any sense to H> > relax it this way? H> H> Because the other M_XXXX assert macros checked for NULL aswell. M_ASSERTPKTHDR() does absolutely the opposite - it asserts that m is present. M_ASSERTEXTPG() doesn't check that explicitly, but also disallows (m == NULL). -- Gleb Smirnoff