udp: pass the length of the sent size to the callback
test: add test for length udp send callback value