freebsd11_network: adapt code based on needs of the pcnet R11.1 driver.
This commit is contained in:
@@ -151,7 +151,7 @@ void m_adj(struct mbuf*, int);
|
|||||||
void m_align(struct mbuf*, int);
|
void m_align(struct mbuf*, int);
|
||||||
int m_append(struct mbuf*, int, c_caddr_t);
|
int m_append(struct mbuf*, int, c_caddr_t);
|
||||||
void m_cat(struct mbuf*, struct mbuf*);
|
void m_cat(struct mbuf*, struct mbuf*);
|
||||||
void m_clget(struct mbuf*, int);
|
int m_clget(struct mbuf*, int);
|
||||||
void* m_cljget(struct mbuf*, int, int);
|
void* m_cljget(struct mbuf*, int, int);
|
||||||
struct mbuf* m_collapse(struct mbuf*, int, int);
|
struct mbuf* m_collapse(struct mbuf*, int, int);
|
||||||
void m_copyback(struct mbuf*, int, int, caddr_t);
|
void m_copyback(struct mbuf*, int, int, caddr_t);
|
||||||
|
|||||||
@@ -177,12 +177,13 @@ m_getjcl(int how, short type, int flags, int size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
int
|
||||||
m_clget(struct mbuf *memoryBuffer, int how)
|
m_clget(struct mbuf *memoryBuffer, int how)
|
||||||
{
|
{
|
||||||
memoryBuffer->m_ext.ext_buf = NULL;
|
memoryBuffer->m_ext.ext_buf = NULL;
|
||||||
/* called checks for errors by looking for M_EXT */
|
/* called checks for errors by looking for M_EXT */
|
||||||
construct_ext_mbuf(memoryBuffer, how);
|
construct_ext_mbuf(memoryBuffer, how);
|
||||||
|
return memoryBuffer->m_flags & M_EXT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user