dgram: pass the bytes sent to the send callback

Fixes #6953