Some things were changed in recent 2.4.21 kernel, so here is the patch for tcng-9e, if you're interesting in. Dimitry. --- tcng-9e/tcsim/setup.klib.orig Fri Oct 11 02:30:23 2002 +++ tcng-9e/tcsim/setup.klib Sat Jun 14 19:36:08 2003 @@ -146,7 +146,7 @@ /^i.*rtnetlink_dump_all/,/^}/d /^i.*rtnetlink_dump_ifinfo/,/^}/d;/^v.*rtmsg_ifinfo/,/^}/d /rtnetlink_event/,$d;/link_rtnetlink_table/,/^}/d -/^s.*rtnetlink_rcv[(]/,/^}/d;s/__inline__//' \ +/^s.*rtnetlink_rcv[(]/,/^}/d;s/__inline__//;s/^static//' \ <$KSRC/net/core/rtnetlink.c >>rtnetlink.c sed '${/#endif/q;};d' <$KSRC/net/core/rtnetlink.c >>rtnetlink.c @@ -347,6 +347,7 @@ enum { IPPROTO_TCP = 6, IPPROTO_UDP = 17, + IPPROTO_ESP = 50 }; #if 0 @@ -412,6 +413,7 @@ #define _LINUX_KERNEL_H #include <linux/mm.h> /* ugly but necessary ... */ +#include <linux/compiler.h> #define current_text_addr() 0 /* from include/asm/processor.h */ @@ -420,6 +422,8 @@ #define KERN_WARNING "<4>" #define KERN_ERR "<3>" +#define LONG_MAX ((long)(~0UL>>1)) + int printk(const char *fmt,...); #define BUG() ({ void abort(void); abort(); })