[ninux-dev] iwconfig JSON output
Gabriel
gabriel at autistici.org
Sun Nov 16 01:02:52 CET 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Perché avete deciso di parsare l'output dei comandi?
iw e ip non sono solo dei frontend che mostrano informazioni dei
driver di rete del kernel? dovrebbero esistere delle API in C per
accedere direttamente a queste info.
Qua ho trovato un paio di link a riguardo:
http://vlkan.com/wapi/main.html
https://pypi.python.org/pypi/iwlib
Gabriel
On 14/11/2014 14:23, Nemesis wrote:
> On 11/13/2014 12:23 PM, Clauz wrote:
>> Si'. iwconfig usa wext, iw usa nl80211:
>> http://wireless.kernel.org/en/developers/Documentation/Wireless-Extensions
>>
>>
>>
Comunque a me l'output di iw pare stabile da un bel po', e infatti da un
>> "git log iw.c" pare che l'output di iw sia stato toccato l'ultima
>> volta il 20 novembre 2012.
>>
>>> Ci sono altri comandi alternativi?
>> No :(
>>
>> Googlando "linuxwireless iw do not screenscrape" vengono fuori: *
>> http://comments.gmane.org/gmane.linux.kernel.wireless.general/110220
>>
>>
* http://comments.gmane.org/gmane.linux.kernel.wireless.general/74216
>
> Ho trovato alcuni link interessanti:
>
> * https://github.com/arend/py80211 *
> https://github.com/tgraf/libnl
>
> Ma non significa che sul sistema con cui si vuole interagire deve
> essere installato python?
>
>
>> * ma soprattutto:
>> http://t59177.linux-kernel-wireless-general.wirelessforum.info/how-to-find-essid-signal-strength-t59177.html
>
>>
> Per soprattutto ti riferisci a:
>
> "Copy bits of the wpa_supplicant or iw code into your code to get
> this,information. That said, iw output _should_ be fairly stable,
> in this,area."
>
> Oppure a cosa in particolare?
>
>
> _______________________________________________ ninux-dev mailing
> list ninux-dev at ml.ninux.org
> http://ml.ninux.org/mailman/listinfo/ninux-dev
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBAgAGBQJUZ+msAAoJEESx6+O1zsXFlsoIAIYN1PcTdwuCYrhx6fbd/N3B
rACB9zsmk99/hbmFP75EiRVAKfom3unWMvxUldqDB43vXv6sFa52CqXwNWbGvEXb
ISj3LYm3mTgkDHooJhZna4Ew7z00463iGv3ORRx6n9EVyNcbG94Ng04Echyva8JS
SM8S+5KOXf/jkO3nVLqzBpCqlWuaRFJBQkKsqa4+SiZsXu7Muekx/oidK3PR9TPO
SMQL7ilT/5zmXPFk9tThSpBAyBlpfMlbP0feIQo+uNQ+fH+7SI+VSfOqS9cqyOhY
xDtubseaPDK7TUAnHwLe8bzhlomFhj/Un8pdRZoL20oB3aFZbL2IEf/nNFmXTzc=
=ehjm
-----END PGP SIGNATURE-----
More information about the ninux-dev
mailing list