Minor tweaks and optimizations to new RIP/OSPF/BGP formats.