From eca09602e96b002cf7b2c79acde4f91bad2aa92e Mon Sep 17 00:00:00 2001 From: fbernon Date: Sat, 26 Apr 2008 11:12:50 +0000 Subject: [PATCH] win32 port: minor changes --- ports/win32/lwipcfg_msvc.h.example | 12 +++++++++++- ports/win32/lwipopts.h | 8 ++++---- ports/win32/msvc6/apps.dsp | 14 +++++++++++++- ports/win32/msvc8/readme.txt | 2 +- 4 files changed, 29 insertions(+), 7 deletions(-) diff --git a/ports/win32/lwipcfg_msvc.h.example b/ports/win32/lwipcfg_msvc.h.example index 308d7bf..a851a7e 100644 --- a/ports/win32/lwipcfg_msvc.h.example +++ b/ports/win32/lwipcfg_msvc.h.example @@ -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) \ No newline at end of file +#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 diff --git a/ports/win32/lwipopts.h b/ports/win32/lwipopts.h index 7aae1fc..597ef90 100644 --- a/ports/win32/lwipopts.h +++ b/ports/win32/lwipopts.h @@ -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. */ diff --git a/ports/win32/msvc6/apps.dsp b/ports/win32/msvc6/apps.dsp index c547bf1..fe31f85 100644 --- a/ports/win32/msvc6/apps.dsp +++ b/ports/win32/msvc6/apps.dsp @@ -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 diff --git a/ports/win32/msvc8/readme.txt b/ports/win32/msvc8/readme.txt index 3e57121..3646c79 100644 --- a/ports/win32/msvc8/readme.txt +++ b/ports/win32/msvc8/readme.txt @@ -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').