Properly sort routes (use sizeof(route) only)

and not sizeof(route) * num_routes
Only forward RIR if either router or subnet is new