From mboxrd@z Thu Jan 1 00:00:00 1970 From: ajneu Subject: Re: programatically determine netlink-type: can or vcan ... Date: Thu, 23 Jun 2016 07:09:30 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from plane.gmane.org ([80.91.229.3]:50174 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751241AbcFWHJj (ORCPT ); Thu, 23 Jun 2016 03:09:39 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bFyld-0005cT-8x for linux-can@vger.kernel.org; Thu, 23 Jun 2016 09:09:37 +0200 Received: from 195.50.142.51 ([195.50.142.51]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Jun 2016 09:09:37 +0200 Received: from ajneu1 by 195.50.142.51 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Jun 2016 09:09:37 +0200 Sender: linux-can-owner@vger.kernel.org List-ID: To: linux-can@vger.kernel.org ajneu gmail.com> writes: > OK, it turns out that it was quite manageable, to add the desired > functionality to libsocketcan. > See > https://github.com/ajneu/libsocketcan > https://github.com/ajneu/libsocketcan/commit/26ef Added another commit, that adds function: device_is_up() Why? The existing can_get_state() is limited only to can devices. It does not work for vcan. I hope Marc Kleine-Budde can integrate these changes into the official git. Regards, ajneu