DSR source code from RH9.0 to FC2

xiaoxiao2021-03-06  76

1. Makefile: Include directory change: rh9.0: /usr/src/linux-2.4.20-8 fc2: /usr/src/linux-2.6.5-1.358 HEADS change: rh9.0: / usr / include / Linux /Version.h fc2: /usr/src/linux-2.6.5-1.358/include/linux/Version.h2. Compile time error solution: 1. Irq_vectors.h and other files Can't find: cp /usr/src/linux-2.6.5-1.358/include/asm/mach-default/* /usr/src/linux-2.6.5-1.358/include/ASM / 2. In the DSR_Output1 function: 2.6 There is no RT_Key in the kernel. Instead, it is a FlowI to replace all RT_Key types. 3. Bound_dev_if (rh9.0) in the SOCK structure becomes SK_Bound_DEV_IF (FC2) 4. The current_time structure changes from XTime.tv_sec to current_kernel_time (), the latter returns a Timespec structure, containing Time_T TV_sec. So the solution is: current_time changes to current_time.tv_sec. 5. __IP_SELECT_IDENT (..) parameter from 2 to 3. The third parameter is set to 0. 6. NF_HOOK_OPS structure has changed, more members, Struct Modele * Owner, I don't know what to do. Temporarily set it to this_Module 7. An error occurred in the link phase: **** Warning: "dsr_stat" [/root/dsr-for-fc2/dsr.ko] undefined! The solution is to remove the Static modifier at its statement. Compile!

转载请注明原文地址:https://www.9cbs.com/read-94013.html

New Post(0)