mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 10:27:12 +08:00
Fix zero-copy mbuf support
In 2017 there was a change in the mbuf API.
This commit is contained in:
@@ -53,8 +53,7 @@ struct mbuf *rtems_bsd_m_get(int how, short type);
|
||||
struct mbuf *rtems_bsd_m_gethdr(int how, short type);
|
||||
|
||||
void rtems_bsd_m_extaddref(struct mbuf *m, void *buf, size_t size,
|
||||
u_int *ref_cnt, void (*freef)(void *, void *), void *arg1,
|
||||
void *arg2);
|
||||
u_int *ref_cnt, m_ext_free_t *freef, void *arg1, void *arg2);
|
||||
|
||||
void rtems_bsd_m_free(struct mbuf *m);
|
||||
|
||||
|
@@ -55,8 +55,7 @@ rtems_bsd_m_gethdr(int how, short type)
|
||||
|
||||
void
|
||||
rtems_bsd_m_extaddref(struct mbuf *m, void *buf, size_t size,
|
||||
u_int *ref_cnt, void (*freef)(void *, void *), void *arg1,
|
||||
void *arg2)
|
||||
u_int *ref_cnt, m_ext_free_t *freef, void *arg1, void *arg2)
|
||||
{
|
||||
m_extaddref(m, buf, size, ref_cnt, freef, arg1, arg2);
|
||||
}
|
||||
|
Reference in New Issue
Block a user