[PATCH v2 08/11] udp: Move some more of sock_handler tasks into sub-functions