netbuf_alloc() function
Allocate memory for a packet buffer for a given netbuf.
Arguments
buf
the netbuf for which to allocate a packet buffer
size
the size of the packet buffer to allocate
Return value
pointer to the allocated memory NULL if no memory could be allocated