Ad-hoc_wifi_routing is a project mainly written in C and C++, it's free.
routing protocol for ad-hoc wifi