From patchwork Mon Sep 28 10:47:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander 'lynxis' Couzens X-Patchwork-Id: 523296 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4A0781401AD for ; Mon, 28 Sep 2015 20:49:02 +1000 (AEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 5307728C778; Mon, 28 Sep 2015 12:47:31 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id EC21828C782; Mon, 28 Sep 2015 12:47:20 +0200 (CEST) X-policyd-weight: using cached result; rate: -7.6 Received: from mail.base45.de (mail.base45.de [80.241.61.77]) by arrakis.dune.hu (Postfix) with ESMTPS; Mon, 28 Sep 2015 12:47:20 +0200 (CEST) Received: from [2001:1a80:2258:7f01:209e:40ee:9fdf:db01] (helo=localhost.localdomain) by mail.base45.de with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA256:128) (Exim 4.82) (envelope-from ) id 1ZgVz3-00006u-Ke; Mon, 28 Sep 2015 12:48:38 +0200 From: Alexander Couzens To: openwrt-devel@lists.openwrt.org Date: Mon, 28 Sep 2015 12:47:12 +0200 Message-Id: <1443437232-30499-1-git-send-email-lynxis@fe80.eu> X-Mailer: git-send-email 2.5.3 Subject: [OpenWrt-Devel] [PATCH netifd] netifd-proto.sh: add table argument to proto_add_ipv4_route() X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: Alexander Couzens --- scripts/netifd-proto.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/netifd-proto.sh b/scripts/netifd-proto.sh index 447f0f6..1cbf4fb 100644 --- a/scripts/netifd-proto.sh +++ b/scripts/netifd-proto.sh @@ -122,8 +122,9 @@ proto_add_ipv4_route() { local gw="$3" local source="$4" local metric="$5" + local table="$6" - append PROTO_ROUTE "$target/$mask/$gw/$metric///$source" + append PROTO_ROUTE "$target/$mask/$gw/$metric//$table/$source" } proto_add_ipv6_route() {