MCPcopy Create free account
hub / github.com/F-Stack/f-stack / m_demote_pkthdr

Function m_demote_pkthdr

freebsd/kern/uipc_mbuf.c:250–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250void
251m_demote_pkthdr(struct mbuf *m)
252{
253
254 M_ASSERTPKTHDR(m);
255
256 m_tag_delete_chain(m, NULL);
257 m->m_flags &= ~M_PKTHDR;
258 bzero(&m->m_pkthdr, sizeof(struct pkthdr));
259}
260
261/*
262 * Clean up mbuf (chain) from any tags and packet headers.

Callers 4

ip_reassFunction · 0.85
tcp_lro_condenseFunction · 0.85
frag6_inputFunction · 0.85
m_demoteFunction · 0.85

Calls 2

m_tag_delete_chainFunction · 0.85
bzeroFunction · 0.85

Tested by

no test coverage detected