[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] How to set the lwip configuration under win32
From: |
zhou yi |
Subject: |
Re: [lwip-users] How to set the lwip configuration under win32 |
Date: |
Fri, 11 Jul 2008 12:50:07 +0800 |
My network does not support dhcp, the router address is 192.168.0.1, my
computer ip is 192.168.0.128. the lwipcfg_msvc.h is like following:
#define LWIP_PORT_INIT_IPADDR(addr) IP4_ADDR((addr), 192,168,0,200)
#define LWIP_PORT_INIT_GW(addr) IP4_ADDR((addr), 192,168,0,128)
#define LWIP_PORT_INIT_NETMASK(addr) IP4_ADDR((addr), 255,255,255,0)
Is this setting means the httpd server ip is 192.168.0.200? Why I can not
connect to the Lwip 1.3 httpd server? Thanks.
----- Original Message -----
From: <address@hidden>
To: "Mailing list for lwIP users" <address@hidden>
Sent: Friday, July 11, 2008 1:26 AM
Subject: Re: [lwip-users] How to set the lwip configuration under win32
> Since you didn't use DHCP and some pings succeed, I don't think the
> port-specific configuration is your problem. Maybe some other
> configuration options (look at lwipopts.h) are set so low that you run
> out of memory somewhere? Or you have a routing problem? I would take a
> look at 'lwip_stats' in the debugger to see if you ran out of memory and
> if not take a look at the actual network traffic using wireshark.
>
> Simon.
>
>
> zhou yi wrote:
>> Dear all:
>> Follow the suggestion, using the wordpad.exe to fix all the dsw and
>> dsp, I can open test.dsw in vc6. I have one ethernet card, so I change
>> lwipcfg_msvc.h as following
>> #define PACKET_LIB_ADAPTER_NR 1
>>
>> #define LWIP_PORT_INIT_IPADDR(addr) IP4_ADDR((addr), 192,168,0,200)
>> #define LWIP_PORT_INIT_GW(addr) IP4_ADDR((addr), 192,168,0,128)
>> #define LWIP_PORT_INIT_NETMASK(addr) IP4_ADDR((addr), 255,255,255,0)
>>
>> After compiling the whole project, the output information as
>> following:
>> Starting lwIP, loopback interface IP is 127.0.0.1
>> Starting lwIP, local interface IP is 192.168.0.200
>> 0: \Device\NPF_GenericDialupAdapter
>> 1: \Device\NPF_{4988064C-B617-452A-9DEF-4EFC0DDD034A}
>> USE: Realtek RTL8169/8110 Family Gigabit Ethernet NIC
>> (Microsoft's Packet Scheduler)
>> MAC: 00:C0:9F:9D:F7:61
>> link_callback==UP
>> status_callback==UP, local interface IP is 192.168.0.200
>> ping: send 192.168.0.128
>> ping: recv - 1000 ms - timeout
>> ping: send 192.168.0.128
>> sntp_request: not recvfrom==0
>> ping: recv - 1000 ms - timeout
>> ping: send 192.168.0.128
>> ping: recv - 1000 ms - timeout
>> ping: send 192.168.0.128
>> 3com.com: <not found>
>> ping: recv - 1000 ms - timeout
>> ping: send 192.168.0.128
>> ping: recv 192.168.0.128 1 ms
>>
>> We can see the ping command sometimes will fail, and I try to connect
>> to the httpd server, open the IE and input http://192.168.0.200, but can not
>> show the right answer.
>> So my question is:
>> 1. Why ping command sometimes will failed?
>> 2. How to confige the project, so that I can connect the httpd server.
>> Thanks.
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> lwip-users mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/lwip-users
>
>
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-users
>
- Re: [lwip-users] How to build a simple TCP [...], (continued)
- Re: [lwip-users] How to build a simple TCP [...], Antonio de Angelis, 2008/07/10
- Re: [lwip-users] How to build a simple TCP [...], Simon Goldschmidt, 2008/07/10
- Re: [lwip-users] How to build a simple TCP [...], Kieran Mansley, 2008/07/10
- Re: [lwip-users] How to build a simple TCP [...], Simon Goldschmidt, 2008/07/10
- Re: [lwip-users] How to build a simple TCP [...], Kieran Mansley, 2008/07/10
- Re: [lwip-users] How to build a simple TCP [...], address@hidden, 2008/07/10
- Re: [lwip-users] How to build a simple TCP [...], Bob McConnell, 2008/07/10
- Re: [lwip-users] How to build a simple TCP [...], David Empson, 2008/07/10
[lwip-users] How to set the lwip configuration under win32, zhou yi, 2008/07/09