summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-eb-translate.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-10-19 13:06:53 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-10-20 11:14:15 +0200
commitabae556c886d94751128c0deb0feee9589fda4c3 (patch)
treef7fbcd9dcfa24ef80734d593ee80b847684e07b2 /iptables/xtables-eb-translate.c
parentc2d9ed99316f26de2d57d9798eee50034114540b (diff)
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 <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Acked-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/xtables-eb-translate.c')
-rw-r--r--iptables/xtables-eb-translate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/iptables/xtables-eb-translate.c b/iptables/xtables-eb-translate.c
index 44419751..f98c3855 100644
--- a/iptables/xtables-eb-translate.c
+++ b/iptables/xtables-eb-translate.c
@@ -14,7 +14,6 @@
#include <linux/netfilter_bridge.h>
#include <linux/netfilter/nf_tables.h>
-#include <ebtables/ethernetdb.h>
#include <libiptc/libxtc.h>
#include "xshared.h"
@@ -474,7 +473,7 @@ print_zero:
ent = xtables_getethertypebyname(optarg);
if (!ent)
xtables_error(PARAMETER_PROBLEM,
- "Problem with the specified Ethernet protocol '%s', perhaps "_XT_PATH_ETHERTYPES " is missing", optarg);
+ "Problem with the specified Ethernet protocol '%s', perhaps "XT_PATH_ETHERTYPES " is missing", optarg);
cs.eb.ethproto = ent->e_ethertype;
} else
cs.eb.ethproto = i;