void netbuf_copy_partial(struct netbuf *buf, void *data, u16_t len, u16_t offset);
void netbuf_copy_partial
This function is similar to netbuf_copy() except that it takes an extra parameter, offset, which can be used to set an offset from the start of the packet to start copying the len bytes.
netbuf_copy()