nhop_get_type
enum nhop_type nhop_get_type(const struct nhop_object *nh);
if (nhop_get_type(nh) == 0) {