From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from m69-170.mailgun.net (m69-170.mailgun.net [166.78.69.170]) by huchra.bufferbloat.net (Postfix) with ESMTP id 101CE21F1C8 for ; Thu, 20 Feb 2014 15:48:27 -0800 (PST) DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=github.com; q=dns/txt; s=mailo; t=1392940106; h=Date: From: Reply-To: To: Message-Id: Subject: Mime-Version: Content-Type: Content-Transfer-Encoding: Sender; bh=WYl/4/vzlaUT4j0kWyp6mtNoSQzwmNmDn0rWw4teaS8=; b=CDlq6E5F/miOBa8KjaYaLS+R6krSAiCbgFho+yQ3avmLSU6wUlpQ+cIm8P9FYj2akzVjDaCM 1B3peUePP1BCmiOjuKXr+WduYeHqZ/fTHugF/Z+Y4l8YlTxkm9csEkibgaFGWcpb5XEVVXg9 Z2kFHjGs1mD0HW3qs3H9qCLOHh4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=github.com; s=mailo; q=dns; h=Date: From: Reply-To: To: Message-Id: Subject: Mime-Version: Content-Type: Content-Transfer-Encoding: Sender; b=NloIruPcaEZQkvDMSi84SaY+hYE5Crz42qr4xUon+PC6tkaS422kQ8pqNV/3bE68Yg3n8L xYPOedis+Mg3S7Ai/Z/6s9yMr4ixe4quptO7wFcMlEXdW/7RlnTFG9QgcPfyz8/0OKKBJ1CY sUkCQSvcWbn2ghC+i6WV9CXJwE6n0= Received: from github.com (Unknown [192.30.252.46]) by mxa.mailgun.org with ESMTP id 53069449.7f4a00508300-in1; Thu, 20 Feb 2014 23:48:25 -0000 (UTC) Date: Thu, 20 Feb 2014 15:48:25 -0800 From: GitHub To: cerowrt-commits@lists.bufferbloat.net Message-Id: <53069449ca94_3e054afd4458680@hookshot-fe1-cp1-prd.iad.github.net.mail> Subject: [dtaht/ceropackages-3.10] 83d997: Teach functions.sh to sanitize user inputs for ing... Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="--==_mimepart_53069449c4c0_3e054afd445855d"; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Mailgun-Sid: WyIzOWVlZSIsICJjZXJvd3J0LWNvbW1pdHNAbGlzdHMuYnVmZmVyYmxvYXQubmV0IiwgIjQwZiJd Sender: noreply@github.com X-BeenThere: cerowrt-commits@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list Reply-To: GitHub List-Id: Development commits for the cerowrt project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Feb 2014 23:48:27 -0000 ----==_mimepart_53069449c4c0_3e054afd445855d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Branch: refs/heads/master Home: https://github.com/dtaht/ceropackages-3.10 Commit: 83d99700b4713f0745fbc66baae8879f9a6719d7 https://github.com/dtaht/ceropackages-3.10/commit/83d99700b4713f0745fbc66baae8879f9a6719d7 Author: Sebastian Moeller Date: 2014-02-20 (Thu, 20 Feb 2014) Changed paths: M net/sqm-scripts/files/usr/lib/sqm/functions.sh Log Message: ----------- Teach functions.sh to sanitize user inputs for ingress and egress target The codel family of qdiscs and pie allow to specify a latency target. Implement get_target() to sanitize the user inputs. only accept well formed specifiers as 5ms or 50usecs. The allowed units were taken from tc_util.c get_time(), the function that handles the input for tc, information was extracted from iproute2 v3.10.0. Misformed target requests are silently dropped, empty values for target will instruct the qdisc to use its default value. ----==_mimepart_53069449c4c0_3e054afd445855d--