Rewrite of RouterModule and fix of a minor DoS issue caused by a direct peer sending too many setup packets.