removing while loop (only call ospf send packet once)