From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arturo Borrero Gonzalez Subject: [nft RFC PATCH 1/6] rule: make family2str() public Date: Tue, 18 Feb 2014 00:18:11 +0100 Message-ID: <20140217231811.19943.19489.stgit@nfdev.cica.es> References: <20140217231654.19943.18736.stgit@nfdev.cica.es> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: pablo@netfilter.org To: netfilter-devel@vger.kernel.org Return-path: Received: from smtp3.cica.es ([150.214.5.190]:39315 "EHLO smtp.cica.es" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754266AbaBQXST (ORCPT ); Mon, 17 Feb 2014 18:18:19 -0500 In-Reply-To: <20140217231654.19943.18736.stgit@nfdev.cica.es> Sender: netfilter-devel-owner@vger.kernel.org List-ID: Make family2str() public so the function can be called from other files. Signed-off-by: Arturo Borrero Gonzalez --- include/rule.h | 2 ++ src/rule.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/rule.h b/include/rule.h index e06444e..4891dc1 100644 --- a/include/rule.h +++ b/include/rule.h @@ -125,6 +125,8 @@ extern void chain_add_hash(struct chain *chain, struct table *table); extern struct chain *chain_lookup(const struct table *table, const struct handle *h); +extern const char *family2str(unsigned int family); + /** * struct rule - nftables rule * diff --git a/src/rule.c b/src/rule.c index ab96e62..9ff2dd3 100644 --- a/src/rule.c +++ b/src/rule.c @@ -279,7 +279,7 @@ struct chain *chain_lookup(const struct table *table, const struct handle *h) return NULL; } -static const char *family2str(unsigned int family) +const char *family2str(unsigned int family) { switch (family) { case NFPROTO_IPV4: