lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] enable socket in lwip


From: FreeRTOS Info
Subject: Re: [lwip-users] enable socket in lwip
Date: Sat, 07 Jan 2012 19:27:59 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0

On 07/01/2012 19:00, Gisle Vanem wrote:
> "Carol Lai" <address@hidden> wrote:
> 
>> I ran the windows example and it also stops at "Attempting to open
>> interface number ##" where ## is configNETWORK_INTERFACE_TO_USE value.
>>
>> My dos window shows 7 adapters and I tried all numbers but none of
>> them pass that "attempting" state.  Below is the print out.
>>
>> ------------------
>> Starting lwIP, local interface IP is 172.25.218.200
>> 1. rpcap://\Device\NPF_{2FFF9284-43BC-43DD-BDF1-28185738EFF8} (Network
>> adapter '
>> Microsoft' on local host)
> 
> I doubt that your Winpcap supports remote capture; that's what the
> "rpcap://" scheme
> means. In any case that device isn't writable, so you get no luck with
> that. You need
> to define 'NETWORK_INTERFACE_TO_USE' to a device (GUID) you actually
> have installed.


Using WinXP SP3, my output is as follows:

------------
Starting lwIP, local interface IP is 172.25.218.200
1. rpcap://\Device\NPF_{20B5CDDD-C5BC-4420-A256-903204AE7C2A} (Network
adapter '
Intel(R) 82567LM Gigabit Network Connection (Microsoft's Packet
Scheduler) ' on
local host)
2. rpcap://\Device\NPF_{8018B663-6C6F-4F58-96F0-76F8F3121F9F} (Network
adapter '
Dell Wireless 1510 Wireless-N WLAN Mini-Card (Microsoft's Packet
Scheduler) ' on
 local host)

The interface that will be opened is set by
configNETWORK_INTERFACE_TO_USE which
 should be defined in FreeRTOSConfig.h
Attempting to open interface number 2.
----------

configNETWORK_INTERFACE_TO_USE is set to 2, and works fine.


> 
> Btw, I cannot find  'NETWORK_INTERFACE_TO_USE' in any lwIP file. Do you
> mean:
>  #define PACKET_LIB_ADAPTER_GUID   "8D3A23A7-9C6C-408B-A23B-6736F9E56510"

As the message says, configNETWORK_INTERFACE_TO_USE is set in
FreeRTOSConfig.h.  It is not an lwIP file, but tells the FreeRTOS
application which of the available network interfaces it is supposed to
be using for lwIP.


Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for Microcontrollers.
More than 7000 downloads per month.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]