added switch to specify msglen

Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>