Put OSPF packet consuming and construction functions into separate
Packet module.