diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-10-19 12:55:16 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-10-20 11:14:10 +0200 |
commit | c2d9ed99316f26de2d57d9798eee50034114540b (patch) | |
tree | 888e14d5353c8fb9438cca67446e0b69b5f433be /iptables/nft-bridge.c | |
parent | 5a44360e54c455871d3576a0a4303afbfb82088f (diff) |
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 <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/nft-bridge.c')
-rw-r--r-- | iptables/nft-bridge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iptables/nft-bridge.c b/iptables/nft-bridge.c index 7e659bb5..876981ac 100644 --- a/iptables/nft-bridge.c +++ b/iptables/nft-bridge.c @@ -421,7 +421,7 @@ static void print_mac(char option, const unsigned char *mac, static void print_protocol(uint16_t ethproto, bool invert, unsigned int bitmask) { - struct ethertypeent *ent; + struct xt_ethertypeent *ent; /* Dont print anything about the protocol if no protocol was * specified, obviously this means any protocol will do. */ @@ -437,7 +437,7 @@ static void print_protocol(uint16_t ethproto, bool invert, unsigned int bitmask) return; } - ent = getethertypebynumber(ntohs(ethproto)); + ent = xtables_getethertypebynumber(ntohs(ethproto)); if (!ent) printf("0x%x ", ntohs(ethproto)); else |