[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] How to set the lwip configuration under win32
From: |
zhou yi |
Subject: |
[lwip-users] How to set the lwip configuration under win32 |
Date: |
Thu, 10 Jul 2008 09:24:47 +0800 |
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.
- RE: [lwip-users] How to build a simple TCP [...], (continued)
- RE: [lwip-users] How to build a simple TCP [...], Bill Auerbach, 2008/07/09
- Re: [lwip-users] How to build a simple TCP [...], address@hidden, 2008/07/09
- 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 <=