关于使用tcpha0.2.0
我在配置tcpha0.2.0,当按照readme进行patch的时候出错了:
[root@svr2 src]# patch -p0<linux_net_netsyms.c.patch
patching file linux-2.4.20/net/netsyms.c
Hunk #1 FAILED at 53.
Hunk #2 FAILED at 295.
2 out of 2 hunks FAILED -- saving rejects to file linux-2.4.20/net/netsyms.c.rej
Linux安装完之后,源代码放在了/usr/src/linux-2.4.20-8,而patch文件需要/usr/src/linux-2.4.20,于是我创建了一个符号链接:
[root@svr2 src]# ls -l linux-2.4.20
lrwxrwxrwx 1 root root 23 Jun 9 11:58 linux-2.4.20 -> /usr/src/linux-2.4.20-8
==============================
linux-2.4.20/net/netsyms.c.rej的内容:
[root@svr2 src]# more linux-2.4.20/net/netsyms.c.rej
***************
*** 53,67 ****
#include <linux/inet.h>
#include <linux/mroute.h>
#include <linux/igmp.h>
extern struct net_proto_family inet_family_ops;
#if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE) || defined (CONFIG_KHTTPD) || defined (CONFI
G_KHTTPD_MODULE)
#include <linux/in6.h>
#include <linux/icmpv6.h>
- #include <net/ipv6.h>
#include <net/ndisc.h>
- #include <net/transp_v6.h>
#include <net/addrconf.h>
extern int sysctl_local_port_range[2];
--- 53,67 ----
#include <linux/inet.h>
#include <linux/mroute.h>
#include <linux/igmp.h>
+ #include <net/ipv6.h>
+ #include <net/transp_v6.h>
extern struct net_proto_family inet_family_ops;
#if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE) || defined (CONFIG_KHTTPD) || defined (CONFI
G_KHTTPD_MODULE)
#include <linux/in6.h>
#include <linux/icmpv6.h>
#include <net/ndisc.h>
#include <net/addrconf.h>
extern int sysctl_local_port_range[2];
***************
*** 295,301 ****
#include <net/ip6_route.h>
EXPORT_SYMBOL(ip6_route_output);
#endif
- #if defined (CONFIG_IPV6_MODULE) || defined (CONFIG_KHTTPD) || defined (CONFIG_KHTTPD_MODULE)
/* inet functions common to v4 and v6 */
EXPORT_SYMBOL(inet_release);
EXPORT_SYMBOL(inet_stream_connect);
--- 295,301 ----
#include <net/ip6_route.h>
EXPORT_SYMBOL(ip6_route_output);
#endif
+ #ifdef CONFIG_INET
/* inet functions common to v4 and v6 */
EXPORT_SYMBOL(inet_release);
EXPORT_SYMBOL(inet_stream_connect);
==============================
我的机器安装了Redhat9.0:
[root@svr2 src]# uname -a
Linux svr2 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
==============================
那位大侠配置过tchpa0.2.0,帮帮我!
多谢!