Code is provided as is, that is, without any guarantees and technical support. I have graduated and moved on and have no time now to debug my old simulation code, sorry.

xRDT, ns 2.27

LCM-MAC, ns 2.27

Wormhole Attack, C code