Reduce memory footprint of chillispot. Allocate 128 connections instead of 1024.
authorepilog <epilog@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 3 Jul 2007 00:53:27 +0000 (00:53 +0000)
committerepilog <epilog@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 3 Jul 2007 00:53:27 +0000 (00:53 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@7859 3c298f89-4303-0410-b956-a3cf2f4a3e73

net/chillispot/patches/102-less_memory-footprint.patch [new file with mode: 0644]

diff --git a/net/chillispot/patches/102-less_memory-footprint.patch b/net/chillispot/patches/102-less_memory-footprint.patch
new file mode 100644 (file)
index 0000000..b0a6c9c
--- /dev/null
@@ -0,0 +1,12 @@
+diff -baurN --exclude='*~' --exclude='.#*' --exclude='.svn*' --exclude='.conf*' --exclude=dl --exclude=bin --exclude=build_mipsel --exclude=staging_dir_mipsel --exclude=toolchain_build_mipsel --exclude=package/config --exclude=autom4te.cache --exclude='*.tgz' --exclude='*.zip' --exclude='*.tar' --exclude='*.gz' --exclude='.tmp*' chillispot-1.1.0.orig/src/chilli.h chillispot-1.1.0/src/chilli.h
+--- chillispot-1.1.0.orig/src/chilli.h 2006-10-19 00:01:55.000000000 +0100
++++ chillispot-1.1.0/src/chilli.h      2006-12-19 00:02:16.000000000 +0100
+@@ -53,7 +53,7 @@
+ /* #define COUNT_DOWNLINK_DROP 1 */
+ /* #define COUNT_UPLINK_DROP 1 */
+-#define APP_NUM_CONN 1024
++#define APP_NUM_CONN 128
+ #define EAP_LEN 2048            /* TODO: Rather large */
+ #define MACOK_MAX 16