win32 port: minor changes

This commit is contained in:
fbernon 2008-04-26 11:12:50 +00:00
parent 85c2c164cc
commit eca09602e9
4 changed files with 29 additions and 7 deletions

View File

@ -5,4 +5,14 @@
#define LWIP_PORT_INIT_IPADDR(addr) IP4_ADDR((addr), 192,168,1,200)
#define LWIP_PORT_INIT_GW(addr) IP4_ADDR((addr), 192,168,1,1)
#define LWIP_PORT_INIT_NETMASK(addr) IP4_ADDR((addr), 255,255,255,0)
#define LWIP_PORT_INIT_NETMASK(addr) IP4_ADDR((addr), 255,255,255,0)
/* configuration for applications */
#define LWIP_DNS_APP 0
#define LWIP_PING_APP 0
#define LWIP_NETBIOS_APP 0
#define LWIP_HTTPD_APP 0
#define LWIP_NETIO_APP 0
#define LWIP_RTP_APP 0
#define LWIP_SNTP_APP 0

View File

@ -104,13 +104,13 @@ a lot of data that needs to be copied, this should be set high. */
/* MEMP_NUM_PBUF: the number of memp struct pbufs. If the application
sends a lot of data out of ROM (or other static memory), this
should be set high. */
#define MEMP_NUM_PBUF 64//FB 16
#define MEMP_NUM_PBUF 16
/* MEMP_NUM_RAW_PCB: the number of UDP protocol control blocks. One
per active RAW "connection". */
#define MEMP_NUM_RAW_PCB 3
/* MEMP_NUM_UDP_PCB: the number of UDP protocol control blocks. One
per active UDP "connection". */
#define MEMP_NUM_UDP_PCB 64//FB 4
#define MEMP_NUM_UDP_PCB 4
/* MEMP_NUM_TCP_PCB: the number of simulatenously active TCP
connections. */
#define MEMP_NUM_TCP_PCB 5
@ -127,9 +127,9 @@ a lot of data that needs to be copied, this should be set high. */
/* The following four are used only with the sequential API and can be
set to 0 if the application only will use the raw API. */
/* MEMP_NUM_NETBUF: the number of struct netbufs. */
#define MEMP_NUM_NETBUF 64//FB 2
#define MEMP_NUM_NETBUF 2
/* MEMP_NUM_NETCONN: the number of struct netconns. */
#define MEMP_NUM_NETCONN 64//FB 10
#define MEMP_NUM_NETCONN 10
/* MEMP_NUM_TCPIP_MSG_*: the number of struct tcpip_msg, which is used
for sequential API communication and incoming packets. Used in
src/api/tcpip.c. */

View File

@ -129,6 +129,12 @@ SOURCE="..\..\..\apps\ping\ping.c"
SOURCE="..\..\..\apps\sntp\sntp.c"
# End Source File
# End Group
# Begin Group "rtp"
# Begin Source File
SOURCE="..\..\..\apps\rtp\rtp.c"
# End Source File
# End Group
# End Group
# Begin Group "header"
@ -162,7 +168,7 @@ SOURCE="..\..\..\apps\netbios\netbios.h"
# Begin Group "ping"
# Begin Source File
SOURCE="..\..\..\apps\sntp\sntp.h"
SOURCE="..\..\..\apps\ping\ping.h"
# End Source File
# End Group
# Begin Group "sntp"
@ -171,6 +177,12 @@ SOURCE="..\..\..\apps\sntp\sntp.h"
SOURCE="..\..\..\apps\sntp\sntp.h"
# End Source File
# End Group
# Begin Group "rtp"
# Begin Source File
SOURCE="..\..\..\apps\rtp\rtp.h"
# End Source File
# End Group
# End Group
# End Target
# End Project

View File

@ -13,7 +13,7 @@ To get this compiling, you have to set a couple of environment variables:
You also will have to copy the file 'lwipcfg_msvc.h.example' to
'lwipcfg_msvc.h' and modify to suit your needs (WinPcap adapter number,
IP configuration).
IP configuration, applications...).
Note that you also have to set the PCAP_DIR environment variable to point
to the WinPcap Developer's Packs (containing 'include' and 'lib').