netbuf_next() function
Move the current data pointer of a packet buffer contained in a netbuf to the next part. The packet buffer itself is not modified.
Return value
-1 if there is no next part 1 if moved to the next part but now there is no next part 0 if moved to the next part and there are still more parts
netbuf_next() reads 2 variables and writes 1 variable:
![]()
netbuf_next()