From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4222DC04AB6 for ; Tue, 28 May 2019 21:03:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2139621019 for ; Tue, 28 May 2019 21:03:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727795AbfE1VD6 (ORCPT ); Tue, 28 May 2019 17:03:58 -0400 Received: from orbyte.nwl.cc ([151.80.46.58]:38486 "EHLO orbyte.nwl.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727701AbfE1VD6 (ORCPT ); Tue, 28 May 2019 17:03:58 -0400 Received: from localhost ([::1]:51574 helo=tatos) by orbyte.nwl.cc with esmtp (Exim 4.91) (envelope-from ) id 1hVjGH-0002LB-8U; Tue, 28 May 2019 23:03:57 +0200 From: Phil Sutter To: Pablo Neira Ayuso Cc: netfilter-devel@vger.kernel.org, Eric Garver Subject: [nft PATCH v4 3/7] src: Make {table,chain}_not_found() public Date: Tue, 28 May 2019 23:03:19 +0200 Message-Id: <20190528210323.14605-4-phil@nwl.cc> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190528210323.14605-1-phil@nwl.cc> References: <20190528210323.14605-1-phil@nwl.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Signed-off-by: Phil Sutter --- include/rule.h | 3 +++ src/evaluate.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/rule.h b/include/rule.h index 8e70c129fcce0..61aa040a2e891 100644 --- a/include/rule.h +++ b/include/rule.h @@ -646,4 +646,7 @@ struct timeout_protocol { extern struct timeout_protocol timeout_protocol[IPPROTO_MAX]; extern int timeout_str2num(uint16_t l4proto, struct timeout_state *ts); +int table_not_found(struct eval_ctx *ctx); +int chain_not_found(struct eval_ctx *ctx); + #endif /* NFTABLES_RULE_H */ diff --git a/src/evaluate.c b/src/evaluate.c index 55fb3b6131e04..09bb1fd37a301 100644 --- a/src/evaluate.c +++ b/src/evaluate.c @@ -166,7 +166,7 @@ static struct table *table_lookup_global(struct eval_ctx *ctx) return table; } -static int table_not_found(struct eval_ctx *ctx) +int table_not_found(struct eval_ctx *ctx) { struct table *table; @@ -181,7 +181,7 @@ static int table_not_found(struct eval_ctx *ctx) family2str(table->handle.family)); } -static int chain_not_found(struct eval_ctx *ctx) +int chain_not_found(struct eval_ctx *ctx) { const struct table *table; struct chain *chain; -- 2.21.0