📄 readme.windows
字号:
$Id: README.Windows,v 1.8 2001/10/19 17:37:38 jm Exp $Dynamics - HUT Mobile IPDynamic and Hierarchical IP Tunneling SystemCopyright (C) 1998-2001 Dynamics group (Bj鰎n Andersson, Dan Forsberg, Jari Hautio, Jouni Malinen, Kimmo Mustonen, Tom Weckstr鰉)Notes on using Windows port of Dynamics Mobile Node===================================================Please note that this version of the Windows port is not thoroughlytested and it may still have numerous errors. For example, the codehas support for only one network interface. In addition, only FAdecapsulation is supported in this version. The code should supportWindows 98, Windows ME, Windows NT, and Windows 2000. However, it hasbeen only briefly tested with Windows 98 and NT. Registration anddata transmission has succeeded with Windows NT (sp5).Dynamics MN for Windows requires Cygwin library (fromhttp://www.cygwin.com/) and WinPcap (fromhttp://netgroup-serv.polito.it/winpcap/). These must be installedbefore MN binaries can be run or compiled.WinPcap needs to be installed also on the host that is only running(i.e., not compiling) the code, but full Cygwin installation is neededonly for compiling. However, couple of DLLs from Cygwin package(cygwin1.dll, cygreadline5.dll, cygncurses5.dll) must be availablewhen running Dynamics MN on Windows. These are available as an extraZIP packet for easier installation.dynmn_tool can be used to control Dynamics MN and to get informationabout the current state of the MN daemon.Native compiling----------------Mobile Node can be compiled natively using cygwin on Windows; seehttp://www.cygwin.com/ for instructions on how to install cygwin. Youwill also need to install winpcap development package to compileDynamics. Please check below, how to compile a working winpcap libraryfor building Dynamics (default distribution seems to include extracopy of getopt, which cannot be linked with cygwin).Dynamics can be compiled with following commands:cd dynamics-0.?.?./configure --with-onlymnmakeIf winpcap include file (pcap.h) and library (libwpcap.a) are not indefault location, you will need to tell the paths to configure scriptwith --with-winpcap-includes and --with-winpcap-libraries arguments,e.g., with folloging command:./configure --with-onlymn \ --with-winpcap-includes=/usr/local/winpcap/include \ --with-winpcap-libraries=/usr/local/winpcap/libCross-compiling---------------Mobile Node for Windows can be compiled with a cross-compiler. Youneed to have installed cross-compiler for cygwin32 target. Dynamicscan be compiled with, e.g., following commands running on Linux:cd dynamics-0.?.?./configure --host=i686-pc-linux-gnu --target=i386-pc-cygwin32 --with-onlymnmakeDepending on your cross-compiler configuration, you may need tospecify the location of 'gcc', 'ar', and 'ranlib' by changing the'configure' execution:cd dynamics-0.?.?RANLIB=/usr/local/i386-pc-cygwin32/bin/i386-pc-cygwin32-ranlib \AR=/usr/local/i386-pc-cygwin32/bin/i386-pc-cygwin32-ar \CC=gcc-win ./configure --host=i686-pc-linux-gnu --target=i386-pc-cygwin32 \ --with-onlymnmakeBuilding working WinPcap------------------------Default distribution of WinPcap (at least v2.2) seems to include extracopy of getopt, which cannot be linked with cygwin. This needs to beremoved before Dynamics MN can be linked. Following steps can be usedto build a working version of the library.Fetch winpcap source code fromhttp://netgroup-serv.polito.it/winpcap/install/bin/WPcapSrc.zipand unzip that file:unzip WPcapSrc.zipcd winpcap/packetNtx/DLL/Project (or ../Packet9x/..)make (this will build Packet.a that is needed later)cd ../../../wpcap/PRJRemove getopt related items from GNUmakefile and WPCAP.DEF. Followingdiffs include the lines that need to be removed:--- GNUmakefile.ORIG Sun Sep 30 13:22:28 2001+++ GNUmakefile Sun Sep 30 13:23:12 2001@@ -42,7 +42,6 @@ ../libpcap/Win32/Src/getaddrinfo.o \
../libpcap/Win32/Src/getnetbynm.o \
../libpcap/Win32/Src/getnetent.o \
- ../libpcap/Win32/Src/getopt.o \
../libpcap/Win32/Src/getservent.o \
../libpcap/grammar.o \
../libpcap/inet.o \
--- WPCAP.DEF.ORIG Sun Sep 30 13:22:23 2001+++ WPCAP.DEF Sun Sep 30 13:23:26 2001@@ -42,7 +42,3 @@ endservent
getservent
eproto_db
- optind
- optarg
- getopt
- opterr
If you built 9x version of Packet.a, you will also need to set SYSTYPEto "9x" in GNUmakefile (i.e., comment NT and uncomment 9x).Build winpcap library with modified files:make(this build ../lib/libwpcap.a)Install required files (set WPCAP to proper directory):WPCAP=~/wpcapmkdir -p $WPCAP/include/net $WPCAP/libcd ..cp LIB/libwpcap.a $WPCAP/libcp libpcap/pcap.h $WPCAP/includecp libpcap/bpf/net/bpf.h $WPCAP/include/netAfter this you should have working WinPcap library and includes filesfor Dynamics building. Remember to add following arguments for configure: --with-winpcap-includes=$WPCAP/include --with-winpcap-libraries=$WPCAP/lib
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -