Adaptive Attack Mitigation in Software Defined Networking