From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from m69-169.mailgun.net (m69-169.mailgun.net [166.78.69.169]) by huchra.bufferbloat.net (Postfix) with ESMTP id 1216521F2C7 for ; Sun, 5 Oct 2014 13:37:40 -0700 (PDT) DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=github.com; q=dns/txt; s=mailo; t=1412541459; h=Date: From: Reply-To: To: Message-Id: Subject: Mime-Version: Content-Type: Content-Transfer-Encoding: Sender; bh=pAjAGvWs3Wcd+YAqWTr0I4LFDxxL3WOV3Ad771mBkyc=; b=cf80T2M2oSM8f1NT+h799L0fx/8fd9HkHDD5QSOHd4BU9BR1VHnjmfRmLoopVpeAYXk4E+bX B42puRhn+GeLkLJhAI3uzm/5dZq11mgzkd80eGbwLuypg7FpVUmEpWW69RM3ov5L412d+kvk gwDnEEm6eQJ2fKyqWuGhterXK2w= 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=OgdLQ3nkU7ty/Ooo9kaf/yHY/dnsyWvecVl9/RWN2AuhzSRIzveUWMB1sdRx0HNMf0Qgn9 idgJE04Ev8lVoSK6Ok3URSQsI9J7/Anm1Yx2F/iiLlyyZUOkmylfKymGd/wy/eM1vx30VFTK 3D9sFz+duVkeMPmGaR8fSyx8aW99Y= Received: from github.com (Unknown [192.30.252.41]) by mxa.mailgun.org with ESMTP id 5431ac09.7fb7d08636f0-in3; Sun, 05 Oct 2014 20:37:29 -0000 (UTC) Date: Sun, 05 Oct 2014 13:37:29 -0700 From: GitHub To: cerowrt-commits@lists.bufferbloat.net Message-Id: <5431ac093695a_56b03fc0173272bc69184@hookshot-fe4-cp1-prd.iad.github.net.mail> Subject: [dtaht/ceropackages-3.10] a35712: Generalize get_ifb_associated_with_if's IFB name e... Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="--==_mimepart_5431ac09363eb_56b03fc0173272bc690e9"; 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: Sun, 05 Oct 2014 20:38:09 -0000 ----==_mimepart_5431ac09363eb_56b03fc0173272bc690e9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Branch: refs/heads/master Home: https://github.com/dtaht/ceropackages-3.10 Commit: a357122349b4ece391a0e04d00f5cc151e488cef https://github.com/dtaht/ceropackages-3.10/commit/a357122349b4ece391a0e04d00f5cc151e488cef Author: Sebastian Moeller Date: 2014-10-05 (Sun, 05 Oct 2014) Changed paths: M net/sqm-scripts/files/usr/lib/sqm/functions.sh Log Message: ----------- Generalize get_ifb_associated_with_if's IFB name extraction regular expression Instead of searching for a name like ifb0 by grepping for ifb followed by a digit, extract the whole string starting with ifb up to (and excluding) the closing parenthesis of "tc -p filter show parent ffff: dev $DEV" output. Example output follows: filter protocol all pref 10 u32 filter protocol all pref 10 u32 fh 800: ht divisor 1 filter protocol all pref 10 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:1 match 00000000/00000000 at 0 action order 1: mirred (Egress Redirect to device ifb1) stolen index 19 ref 1 bind 1 installed 10 sec Action statistics: Sent 2582 bytes 31 pkt (dropped 0, overlimits 0 requeues 0) backlog 0b 0p requeues 0 So do not use ) as part of the proper IFB name... ----==_mimepart_5431ac09363eb_56b03fc0173272bc690e9--