[dtaht/ceropackages-3.10] 83d997: Teach functions.sh to sanitize user inputs for ing...

GitHub noreply at github.com
Thu Feb 20 18:48:25 EST 2014


  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 <moeller0 at gmx.de>
  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.




More information about the Cerowrt-commits mailing list