From c2d9ed99316f26de2d57d9798eee50034114540b Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 19 Oct 2018 12:55:16 +0200 Subject: libxtables: prefix exported new functions for etherdb lookups To avoid symbol pollution, place them under the xt_ and xtables_ prefix name. Fixes: 31f1434dfe37 ("libxtables: Integrate getethertype.c from xtables core") Reported-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso Acked-by: Phil Sutter --- extensions/libebt_arp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extensions/libebt_arp.c') diff --git a/extensions/libebt_arp.c b/extensions/libebt_arp.c index dc8e306a..3a4c29b5 100644 --- a/extensions/libebt_arp.c +++ b/extensions/libebt_arp.c @@ -75,7 +75,7 @@ static void brarp_print_help(void) printf(" %d = %s\n", i + 1, opcodes[i]); printf( " hardware type string: 1 = Ethernet\n" -" protocol type string: see "_PATH_ETHERTYPES"\n"); +" protocol type string: see "_XT_PATH_ETHERTYPES"\n"); } #define OPT_OPCODE 0x01 @@ -262,9 +262,9 @@ brarp_parse(int c, char **argv, int invert, unsigned int *flags, i = strtol(optarg, &end, 16); if (i < 0 || i >= (0x1 << 16) || *end !='\0') { - struct ethertypeent *ent; + struct xt_ethertypeent *ent; - ent = getethertypebyname(argv[optind - 1]); + ent = xtables_getethertypebyname(argv[optind - 1]); if (!ent) xtables_error(PARAMETER_PROBLEM, "Problem with specified ARP " "protocol type"); -- cgit v1.2.3