Selective Flooding in Ad Hoc Networks