netbuf_ref() function
Let a netbuf reference existing (non-volatile) data.
Arguments
buf
netbuf which should reference the data
dataptr
pointer to the data to reference
Return value
ERR_OK if data is referenced ERR_MEM if data couldn't be referenced due to lack of memory