Efficient use of resources in mobile ad hoc networks