Skip to content

Commit

Permalink
Add M_ASSERTPKTHDR.
Browse files Browse the repository at this point in the history
  • Loading branch information
tuexen committed Feb 16, 2022
1 parent 696a9f3 commit 602e745
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions usrsctplib/user_mbuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ extern int max_protohdr; /* Size of largest protocol layer header. See user_mbuf
(!(((m)->m_flags & M_EXT)) || \
(*((m)->m_ext.ref_cnt) == 1)) ) \

/* Check if the supplied mbuf has a packet header, or else panic. */
#define M_ASSERTPKTHDR(m) \
KASSERT((m) != NULL && (m)->m_flags & M_PKTHDR, \
("%s: no mbuf packet header!", __func__))

/*
* Compute the amount of space available before the current start of data in
Expand Down

0 comments on commit 602e745

Please sign in to comment.