Fix gen-routing-table's bug
Replace c-hash's redaundant function