freebsd11_network: adapt code based on needs of the pcnet R11.1 driver.

This commit is contained in:
Jérôme Duval 2017-11-18 18:44:18 +01:00
parent 45b4110c1c
commit ad7432f214
2 changed files with 3 additions and 2 deletions

View File

@ -151,7 +151,7 @@ void m_adj(struct mbuf*, int);
void m_align(struct mbuf*, int);
int m_append(struct mbuf*, int, c_caddr_t);
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);
struct mbuf* m_collapse(struct mbuf*, int, int);
void m_copyback(struct mbuf*, int, int, caddr_t);

View File

@ -177,12 +177,13 @@ m_getjcl(int how, short type, int flags, int size)
}
void
int
m_clget(struct mbuf *memoryBuffer, int how)
{
memoryBuffer->m_ext.ext_buf = NULL;
/* called checks for errors by looking for M_EXT */
construct_ext_mbuf(memoryBuffer, how);
return memoryBuffer->m_flags & M_EXT;
}