[PATCH 3/5] device: add new function device_tunnel_get_type()