mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Add mtodo(m, o) macro taking an additional offset into the mbuf data section.
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
1b4381afbb
commit
7c14da7202
1 changed files with 2 additions and 0 deletions
|
|
@ -67,8 +67,10 @@
|
|||
* type:
|
||||
*
|
||||
* mtod(m, t) -- Convert mbuf pointer to data pointer of correct type.
|
||||
* mtodo(m, o) -- Same as above but with offset 'o' into data.
|
||||
*/
|
||||
#define mtod(m, t) ((t)((m)->m_data))
|
||||
#define mtodo(m, o) ((void *)(((m)->m_data) + (o)))
|
||||
|
||||
/*
|
||||
* Argument structure passed to UMA routines during mbuf and packet
|
||||
|
|
|
|||
Loading…
Reference in a new issue