Converts a pointer to an mbuf structure to a pointer to the data stored in that mbuf structure.
Item | Description |
---|---|
m | Identifies the address of an mbuf structure. |
type | Indicates the type to which the resulting pointer should be cast. |
The MTOD macro converts a pointer to an mbuf structure into a pointer to the data stored in the mbuf structure. This macro can be used as in the following example:
char *bufp;
bufp = MTOD(m, char *);