1 diff -urN orig/l2tpns-2.1.14/Makefile l2tpns-2.1.14/Makefile
2 --- orig/l2tpns-2.1.14/Makefile 2005-12-07 06:21:37.000000000 +0100
3 +++ l2tpns-2.1.14/Makefile 2005-12-14 12:50:49.000000000 +0100
5 DEFINES += -DETCDIR='"$(etcdir)"'
14 +INCLUDES = -I. -I$(STAGING_DIR)/usr/include
15 CPPFLAGS = $(INCLUDES) $(DEFINES)
16 CFLAGS = -Wall -Wformat-security -Wno-format-zero-length $(OPTIM)
18 +LDFLAGS = -L$(STAGING_DIR)/usr/lib
20 -INSTALL = install -c -D -o root -g root
21 +INSTALL = install -c -D
23 l2tpns.LIBS = -lm -lcli -ldl
25 diff -urN orig/l2tpns-2.1.14/l2tpns.c l2tpns-2.1.14/l2tpns.c
26 --- orig/l2tpns-2.1.14/l2tpns.c 2005-12-07 06:21:37.000000000 +0100
27 +++ l2tpns-2.1.14/l2tpns.c 2005-12-14 12:50:36.000000000 +0100
32 - static int backtrace_count = 0;
33 LOG(0, 0, t, "tunnelsend called with 0 as tunnel id\n");
34 STAT(tunnel_tx_errors);
35 - log_backtrace(backtrace_count, 5)
41 - static int backtrace_count = 0;
42 LOG(1, 0, t, "Error sending data out tunnel: no remote endpoint (tunnel not set up)\n");
43 - log_backtrace(backtrace_count, 5)
44 STAT(tunnel_tx_errors);
47 @@ -4125,23 +4121,8 @@
48 struct sched_param params = {0};
49 params.sched_priority = 1;
51 - if (get_nprocs() < 2)
53 - LOG(0, 0, 0, "Not using FIFO scheduler, there is only 1 processor in the system.\n");
54 - config->scheduler_fifo = 0;
58 - if ((ret = sched_setscheduler(0, SCHED_FIFO, ¶ms)) == 0)
60 - LOG(1, 0, 0, "Using FIFO scheduler. Say goodbye to any other processes running\n");
64 - LOG(0, 0, 0, "Error setting scheduler to FIFO: %s\n", strerror(errno));
65 - config->scheduler_fifo = 0;
68 + LOG(0, 0, 0, "Not using FIFO scheduler, there is only 1 processor in the system.\n");
69 + config->scheduler_fifo = 0;
72 /* Set up the cluster communications port. */
73 diff -urN orig/l2tpns-2.1.14/l2tpns.h l2tpns-2.1.14/l2tpns.h
74 --- orig/l2tpns-2.1.14/l2tpns.h 2005-12-09 01:43:17.000000000 +0100
75 +++ l2tpns-2.1.14/l2tpns.h 2005-12-14 07:43:51.000000000 +0100
79 #include <netinet/in.h>
80 -#include <execinfo.h>
85 extern ippoolt *ip_address_pool;
86 #define sessionfree (session[0].next)
88 -#define log_backtrace(count, max) \
89 -if (count++ < max) { \
93 - LOG(0, 0, t, "Backtrace follows:\n"); \
94 - size = backtrace(array, 10); \
95 - strings = backtrace_symbols(array, size); \
96 - if (strings) for (i = 0; i < size; i++) \
98 - LOG(0, 0, t, " %s\n", strings[i]); \
104 extern configt *config;
105 extern time_t basetime; // Time when this process started.
106 diff -urN orig/l2tpns-2.1.14/ppp.c l2tpns-2.1.14/ppp.c
107 --- orig/l2tpns-2.1.14/ppp.c 2005-12-07 06:21:37.000000000 +0100
108 +++ l2tpns-2.1.14/ppp.c 2005-12-14 07:43:08.000000000 +0100
109 @@ -1755,9 +1755,7 @@
111 if (size < 12) // Need more space than this!!
113 - static int backtrace_count = 0;
114 LOG(0, s, t, "makeppp buffer too small for L2TP header (size=%d)\n", size);
115 - log_backtrace(backtrace_count, 5)
119 @@ -1780,9 +1778,7 @@
123 - static int backtrace_count = 0;
124 LOG(2, s, t, "makeppp would overflow buffer (size=%d, header+payload=%d)\n", size, l + 12);
125 - log_backtrace(backtrace_count, 5)