[PATCH v12 04/10] udp: Prepare udp.c to be shared with vhost-user