aboutsummaryrefslogtreecommitdiffstats
path: root/package/linux-atm
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-03-20 01:21:49 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-03-20 01:21:49 +0000
commitc4d23cb3b03b0163859f4ee78276a81583518591 (patch)
tree3e273c843025d1954508d8e4cd10aabcb521587d /package/linux-atm
parentbea7583b5ecd2d0911a4025db4260f0680c28619 (diff)
downloadmaster-187ad058-c4d23cb3b03b0163859f4ee78276a81583518591.tar.gz
master-187ad058-c4d23cb3b03b0163859f4ee78276a81583518591.tar.bz2
master-187ad058-c4d23cb3b03b0163859f4ee78276a81583518591.zip
linux-atm: Solos card requires explicit buffer size to br2684ctl
The default send buffer size of 8192 potentially can run past the end of the buffer (skb) and trash memory. Explicitly setting a limit is required. (Patch by Philip Prindeville) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26242 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/linux-atm')
-rwxr-xr-xpackage/linux-atm/files/br2684ctl5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/linux-atm/files/br2684ctl b/package/linux-atm/files/br2684ctl
index 929e2b887e..0c6fa9575f 100755
--- a/package/linux-atm/files/br2684ctl
+++ b/package/linux-atm/files/br2684ctl
@@ -35,12 +35,15 @@ start_daemon() {
local qos
config_get qos "$cfg" qos
+ local sendsize
+ config_get sendsize "$cfg" sendsize
+
local circuit="$atmdev.$vpi.$vci"
local pid="/var/run/br2684ctl-$circuit.pid"
start-stop-daemon -S -b -x /usr/sbin/br2684ctl -m -p "$pid" -- \
-c "$unit" -e "$encaps" -p "$payload" \
- -a "$circuit" ${qos:+-q "$qos"}
+ -a "$circuit" ${qos:+-q "$qos"} ${sendsize:+-s "$sendsize"}
}
start() {