netbuf_data() function
Get the data pointer and length of the data inside a netbuf.
Arguments
buf
netbuf to get the data from
dataptr
pointer to a void pointer where to store the data pointer
len
pointer to an u16_t where the length of the data is stored
Return value
ERR_OK if the information was retrieved, ERR_BUF on error.
Examples
netbuf_data() is referenced by 7 libraries and example projects: