ManetLab is a tool that allows to easily create a mobile ad hoc network (MANET) linking apple desktops together.
ManetLab allows the go beyond simulation-based testing of distributed algorithms for MANETs.
Source code is available on GitHub
Overview: Developing, Deploying and Evaluating Protocols with ManetLab