In this paper, we propose an Optimized OSPF(Open Shortest Path First)protocol for MANETs (Mobile Ad-hoc Networks). MANETs are multi-hop ad-hoc wireless networks where nodes can move arbitrarily in the topology. The network has no given infrastructure and can be set up quickly in any environment. Traditional OSPF is not also well used in multi-hop wireless networks. The optimized OSPF we proposed in this paper is a routing protocol which is more efficient for such mobile ad hoc networks. This paper describes and designs an optimized routing protocol for MANET referring to certain extensions to OSPF for MANET and OLSR routing protocol. The path selection optimization scheme we propose is aiming at reducing the number of redundant retransmissions while diffusing a broadcast message in the network and reducing overall overhead of control traffic。In conclusion, the optimized OSPF protocol improves the performance when using in MANETs as the experiment results show.