[Gambas-devel] [Gambas-devel-svn] SF.net SVN: gambas:[6374] gambas/trunk

Fabien Bodard gambas.fr at ...176...
Sun Jul 13 21:18:17 CEST 2014


It don't work here ... the internet connection is not detected.

[fabien at ...738... gambas]$ ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 54:04:a6:27:bf:2c  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.97  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::762f:68ff:fed8:48ea  prefixlen 64  scopeid 0x20<link>
        ether 74:2f:68:d8:48:ea  txqueuelen 1000  (Ethernet)
        RX packets 692527  bytes 961922724 (917.3 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 512635  bytes 53538712 (51.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

2014-07-13 19:48 GMT+02:00 Benoît Minisini <gambas at ...1...>:
> Le 13/07/2014 19:43, Tobias Boege a écrit :
>> On Sun, 13 Jul 2014, gambas at ...1... wrote:
>>> [GB.DESKTOP]
>>> * NEW: Desktop.NetworkAvailable is a new property that returns if the
>>>    network is available. It just use 'ifconfig' to search for a network
>>>    interface having an IP address different from '127.0.0.1'
>>
>> The distributions I lookied at recently all came without "ifconfig" but
>> with the "ip" program instead. Maybe we should consider this alternative
>> setup. If it helps you to implement it:
>>
>> $ ip addr
>> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
>>      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
>>      inet 127.0.0.1/8 scope host lo
>>         valid_lft forever preferred_lft forever
>>      inet6 ::1/128 scope host
>>         valid_lft forever preferred_lft forever
>> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
>>      link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
>>      inet xxx.xx.xxx.xx/xx brd xxx.xx.xxx.xxx scope global eth0
>>         valid_lft forever preferred_lft forever
>>      inet6 xxxx::xxxx:xxxx:xxxx:xxxx/xx scope link
>>         valid_lft forever preferred_lft forever
>>
>> To extract the IP addresses of all interfaces:
>>
>> $ ip addr | egrep -o "inet [^/]+" | sed 's/inet \(.*\)/\1/'
>> 127.0.0.1
>> xxx.xx.xxx.xx
>>
>> Regards,
>> Tobi
>>
>
> I didn't know. Thanks, I will take that into account.
>
> --
> Benoît Minisini
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gambas-devel mailing list
> Gambas-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-devel



-- 
Fabien Bodard




More information about the Devel mailing list