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

Function pfil_realloc

freebsd/net/pfil.c:117–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115static void pfil_link_free(epoch_context_t);
116
117int
118pfil_realloc(pfil_packet_t *p, int flags, struct ifnet *ifp)
119{
120 struct mbuf *m;
121
122 MPASS(flags & PFIL_MEMPTR);
123
124 if ((m = m_devget(p->mem, PFIL_LENGTH(flags), 0, ifp, NULL)) == NULL)
125 return (ENOMEM);
126 *p = pfil_packet_align(*p);
127 *p->m = m;
128
129 return (0);
130}
131
132static __noinline int
133pfil_fake_mbuf(pfil_func_t func, pfil_packet_t *p, struct ifnet *ifp, int flags,

Callers 1

ipfw_check_frameFunction · 0.85

Calls 2

m_devgetFunction · 0.85
pfil_packet_alignFunction · 0.85

Tested by

no test coverage detected