⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install

📁 DCCP协议在linux下的C编程实现 linux C
💻
字号:
Install instructions for DCCP moduleAt present the DCCP implementation has been tested as a kernel module runningunder User Mode Linux (referred to as UML from this point forwards). It hasbeen tested running under a "real" kernel and built into the kernel (as opposedto a module) but these have not been tested under every version and may or maynot work in this release.For the UML it is recommend to use hostfs to access the host machine's filesystem and to use uml_switch to provide the network support. Both of these aredocumented on the UML website.This module has only been tested on i386 codebase.It is assumed that you have knowledge of the Linux kernel compilation processand the use of UML.The following steps are needed to install:- download kernel version 2.4.27 from any kernel mirror and unzip into a new  directory tree to ensure that it is clean.- download the following UML file from SourceForge:  http://prdownloads.sourceforge.net/user-mode-linux/uml-patch-2.4.27-1.bz2   - Use the following URL to show you how to patch the kernel with the UML  modifications and to understand UML further. Do not compile the kernel at  this point.    http://user-mode-linux.sourceforge.net/compile.html   - The only compulsory step is to run the following command from within the  linux tree you just created:   bzcat uml-patch-2.4.27-1.bz2 | patch -p1- in the directory that the contents of this tarball reside then copy the Linux  kernel files to be patched. The easiest way to do this is as follows (where  linuxsource dir is the directory that contains the kernel source code):  ./dccp_backuplinux.sh linuxsourcedir `pwd`- patch the Linux files by issuing the following command: patch < linuxpatch- copy the Linux and DCCP files back into the relevant place in the kernel  tree. The easiest way to do this is as follows:   ./dccp_copytolinux.sh `pwd` linuxsourcedir- configure the kernel using "make menuconfig ARCH=um" or another of your  favourite tools (xconfig, gconfig) and set DCCP to be a module (under  networking options). You will probably want to set devfs to be N as well  (under file systems) to simplify your UML environment.- build the kernel with the following statements  make dep ARCH=um   make linux ARCH=um   make modules ARCH=um  make modules_install INSTALL_MOD_PATH=`pwd` ARCH=um- from within a UML session copy the modules that you have compiled into the  correct location. The following example assumes that the Linux source is at  /home/user/linuxcode and that the modules are installed under /lib:   cp -r /home/user/linuxcode/lib/ /- start the DCCP module. You will need to restart your UML if you have just  copied in the modules. Here is the command to start DCCP  modprobe dcpThere is sample code provided in Client.c and Server.c. The easiest way tocompile these is using the compile.sh script - for example: ./compile.sh ClientThe DCCP module by default outputs a lot of debug info to the kernel log. Thiscan be changed by altering the value of the DCP_DEBUG symbol in dcp.c

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -