[icq-devel] Newcomer



Starman fm.grattepain at wanadoo.fr
Sat Nov 30 17:17:53 CET 2002


On Saturday, November 30, 2002, at 04:07 PM, Barnaby Gray wrote:

> On Sat, Nov 30, 2002 at 02:28:29PM +0100, Starman wrote:
>> Here is what I tried (on a WIFi network):
>>
>> - connect to the server
>> - send packets, chat with people
>> - disable the network interface (802.11 card)
>> - send data : toto=send(m_socketDescriptor, data, dataLength, 0);
>> - check the toto value... but I always get toto = dataLength, even if
>> the interface is down.
>
> Something weird with your network setup then - if you send on an
> interface which is down you should get network unreachable.
>
> Barnaby

well, you're right, it's not really down, it's inactive:

en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         inet6 fe80::230:65ff:fe02:1a15%en1 prefixlen 64 scopeid 0x5
         inet 10.0.1.69 netmask 0xffffff00 broadcast 10.0.1.255
         ether 00:30:65:02:1a:15
         media: autoselect (<unknown type>) status: inactive
         supported media: autoselect

instead of:
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         inet6 fe80::230:65ff:fe02:1a15%en1 prefixlen 64 scopeid 0x5
         inet 10.0.1.69 netmask 0xffffff00 broadcast 10.0.1.255
         ether 00:30:65:02:1a:15
         media: autoselect status: active
         supported media: autoselect




More information about the icq-devel mailing list