The OSPF protocol is a dynamic routing protocol, which uses of the linkstate database to maintain and calculate routings. Its routing algorithm is the most important part.
The LMP protocol layer contain bluetooth data packet struct, link creation and management, state machine and state management, piconet, master-slave equipment switching.