udp: pass the length of the sent size to the callback

There is no value in passing buffer.length, the user can
check the buffer length himself. The user should be more
interested in the length of the sent content.