mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-08-28 03:29:01 +00:00
Changed documentation, added IP configuration example file, rename to 'lwipcfg_msvc.h' to be able to compile!
This commit is contained in:
parent
fe5e7bd541
commit
d475c7cb17
8
ports/msvc6/lwipcfg_msvc.h.example
Normal file
8
ports/msvc6/lwipcfg_msvc.h.example
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
/* configuration for this port */
|
||||||
|
|
||||||
|
#define PACKET_LIB_ADAPTER_NR 3
|
||||||
|
|
||||||
|
#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)
|
@ -7,22 +7,15 @@ The current CVS code of this port isn't much tested.
|
|||||||
This is a quickly hacked port and example project of the lwIP library to
|
This is a quickly hacked port and example project of the lwIP library to
|
||||||
Win32/MSVC.
|
Win32/MSVC.
|
||||||
|
|
||||||
To get this compiling, you have to set the LWIP_SRC environment variable to
|
To get this compiling, you have to set a couple of environment variables:
|
||||||
point to the src subdirectory in the main lwip tree.
|
- LWIP_SRC: points to the src subdirectory in the main lwip tree
|
||||||
|
- CONTRIB_APPS: points to the apps subdirectory of the contrib module
|
||||||
|
- PCAP_DIR: points to the WinPcap Developer's Packs (containing 'include' and 'lib')
|
||||||
|
|
||||||
>>>NEW>>>
|
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).
|
||||||
|
|
||||||
Note that you also have to set the PCAP_DIR environment variable to point
|
|
||||||
to the WinPcap Developer's Packs (containing 'include' and 'lib'), as well
|
|
||||||
as the PLATFORMSDK_DIR environment variable to point to Microsoft's Platform
|
|
||||||
SDK (or any other place containing 'include/windows.h').
|
|
||||||
|
|
||||||
<<<NEW<<<
|
|
||||||
|
|
||||||
Due to the nature of the lwip library you have to copy this whole project
|
|
||||||
into a new subdir in proj and modify lwipopts.h to your needs. If you move
|
|
||||||
it to another directory besides proj, you have to update the include paths
|
|
||||||
in the project settings.
|
|
||||||
|
|
||||||
Included in the proj/msvc6 directory is the network interface driver using
|
Included in the proj/msvc6 directory is the network interface driver using
|
||||||
the winpcap library.
|
the winpcap library.
|
||||||
@ -33,6 +26,7 @@ This is provided as is, it's just a hack to test some stuff, no serious
|
|||||||
implementation.
|
implementation.
|
||||||
|
|
||||||
Florian Schulze (florian.proff.schulze@gmx.net)
|
Florian Schulze (florian.proff.schulze@gmx.net)
|
||||||
|
Simon Goldschmidt
|
||||||
|
|
||||||
lwIP: http://www.sics.se/~adam/lwip/
|
lwIP: http://www.sics.se/~adam/lwip/
|
||||||
WinPCap: http://netgroup-serv.polito.it/winpcap/
|
WinPCap: http://netgroup-serv.polito.it/winpcap/
|
Loading…
Reference in New Issue
Block a user