From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc Kleine-Budde Subject: Re: Is there any way of getting the CAN interfaces list, from any C program? Date: Thu, 25 Apr 2013 09:35:35 +0200 Message-ID: <5178DCC7.9090002@pengutronix.de> References: <5169B395.2070703@hartkopp.net> <516D2ABB.4000300@pengutronix.de> <5177A090.6010904@peak-system.com> <20130424144929.GA2077@vandijck-laurijssen.be> <5178D00C.70507@grandegger.com> <5178D638.1010303@pengutronix.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2VDBHLKFLTEPJHMOBPDDJ" Return-path: Received: from metis.ext.pengutronix.de ([92.198.50.35]:40307 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755196Ab3DYHfl (ORCPT ); Thu, 25 Apr 2013 03:35:41 -0400 In-Reply-To: <5178D638.1010303@pengutronix.de> Sender: linux-can-owner@vger.kernel.org List-ID: To: Wolfgang Grandegger Cc: Stephane Grosjean , "linux-can@vger.kernel.org" , Kurt Van Dijck This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2VDBHLKFLTEPJHMOBPDDJ Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable On 04/25/2013 09:07 AM, Marc Kleine-Budde wrote: > On 04/25/2013 08:41 AM, Wolfgang Grandegger wrote: >> Hi Kurt, >> >> On 04/24/2013 04:49 PM, Kurt Van Dijck wrote: >>> Hi Stephane, >>> >>> I have written this some time ago, not using it actually. >>> I tried a modular approach, don't know if its usefull. >>> >>> PS: I used attachments. >> >> ~/enumif$ ./enumif >> 1: lo {loopback} UNKNOWN >> 2: eth0 {ether} DOWN >> 3: eth1 {ether} UNKNOWN >> 4: eth3 {ether} DOWN >> 5: can0 {can} UNKNOWN >> 6: can1 {can} DOWN >> 7: can2 {can} DOWN >> 8: can3 {can} DOWN >> 9: pan0 {ether} DOWN >> >> Cool! We know that "ip link" does list all network interfaces but the >> code doing the job is not really strength-forward. I think this would = be >> a nice enhancement of the can-utils. >=20 > Good idea, Stephane, can you license the code under a permissive licens= e > like LGPL or BSD? Errr...sorry. It's Kurt, who posted that code. Kurt, can you give the code a nice license? :) Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | ------enig2VDBHLKFLTEPJHMOBPDDJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlF43McACgkQjTAFq1RaXHOL9QCffp4fCBuv4qo36PWiP40EP434 DO0An3uEZ9yd7geQLE6gmxP6WsOk4lll =W0ZY -----END PGP SIGNATURE----- ------enig2VDBHLKFLTEPJHMOBPDDJ--