https://ns3simulation.com/how-to-implement-icmp-redirect-attack-in-ns3/
Steps to implement ICMP redirect attack in ns3
Here we offer a interesting guide on implementing ICMP redirect attack in ns3 by sending ICMP redirect messages to the victim by an attacker
steps toicmp redirectimplementattack