The ipv6_preferred flag in routerinfo_t should not be there since that data structure is supposed to be immutable. Move it to node_t.