'Does ns-3.35 support source routing?

I have a wired topology(no wifi module) and I want to specify the path of a single packet while others go through the default path

I learned from RFC 791 that source routing could achieve this by adding some option field in header. But I checked ns-3.35's implementation of Ipv4-Header and I found that there is nothing relative to this.

Is there any implementation like this?

Ipv4Header hdr;
Ipv4Address addr1, addr2, addr3;
// add source routing list
hdr.AddSrl(addr1);
hdr.AddSrl(addr2);
hdr.AddSrl(addr3);
...
socket->Send(packet); 

Does ns-3.35 support this, or is there any alternative methods for my purpose?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source