use unsigned int for datalen (according to a warning in OMNet)