freebsd11_network: adapt code based on needs of the pcnet R11.1 driver.
This commit is contained in:
parent
45b4110c1c
commit
ad7432f214
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user