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

Function ff_next_mbuf

lib/ff_veth.c:1085–1097  ·  view source on GitHub ↗

* get next mbuf's addr, current mbuf's data and datalen. * ********************/

Source from the content-addressed store, hash-verified

1083*
1084********************/
1085int ff_next_mbuf(void **mbuf_bsd, void **data, unsigned *len)
1086{
1087 struct mbuf *mb = *(struct mbuf **)mbuf_bsd;
1088
1089 *len = mb->m_len;
1090 *data = mb->m_data;
1091
1092 if (mb->m_next)
1093 *mbuf_bsd = mb->m_next;
1094 else
1095 *mbuf_bsd = NULL;
1096 return 0;
1097}
1098
1099void * ff_mbuf_mtod(void* bsd_mbuf)
1100{

Callers 1

ff_bsd_to_rteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected