Ns-2 is a project mainly written in C++ and C, it's free.
ns-2 simulation codes for my thesis
ns-2 simulation codes for my master thesis "Design of a multi-route routing protocol for ad-hoc networks"
Note: