From abae556c886d94751128c0deb0feee9589fda4c3 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 19 Oct 2018 13:06:53 +0200 Subject: libxtables: expose new etherdb lookup function through libxtables API This is used from extensions and included in libxtables, so we have to make them public. Fixes: 31f1434dfe37 ("libxtables: Integrate getethertype.c from xtables core") Reported-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso Acked-by: Phil Sutter --- libxtables/getethertype.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libxtables') diff --git a/libxtables/getethertype.c b/libxtables/getethertype.c index a4c1407c..59949b79 100644 --- a/libxtables/getethertype.c +++ b/libxtables/getethertype.c @@ -42,8 +42,7 @@ #include #include #include - -#include +#include #define MAXALIASES 35 @@ -56,7 +55,7 @@ static int ethertype_stayopen; static void setethertypeent(int f) { if (etherf == NULL) - etherf = fopen(_XT_PATH_ETHERTYPES, "r"); + etherf = fopen(XT_PATH_ETHERTYPES, "r"); else rewind(etherf); ethertype_stayopen |= f; @@ -79,7 +78,7 @@ static struct xt_ethertypeent *getethertypeent(void) register char *cp, **q; if (etherf == NULL - && (etherf = fopen(_XT_PATH_ETHERTYPES, "r")) == NULL) { + && (etherf = fopen(XT_PATH_ETHERTYPES, "r")) == NULL) { return (NULL); } -- cgit v1.2.3