Research Article

A Persistent Route Diversification Mechanism for Defending against Stealthy Crossfire Attack

Algorithm 4

Traffic steering generation algorithm.
(1)functionGENTRAFFICSTEERS ()
(2)  ifthen return
(3)  
(4)  for alldo
(5)   
(6)   
(7)   
(8)   
(9)   
(10)   ,
(11)  end for
(12)  return
(13)end function