diff options
author | Florian Westphal <fw@strlen.de> | 2013-08-13 10:48:50 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-08-13 18:07:08 +0200 |
commit | 7983983a2912165aaa3b9fff2f7aa42421d2f730 (patch) | |
tree | 461cf7fb68f02b3c518c8931e355a06eaaeed204 /src/internal.h | |
parent | c31e6c60cdd43e94d6bb73f95f688e6d062315df (diff) |
build: avoid symbol namespace pollution
As of f40eabb01 (add pkt_buff and protocol helper functions)
libnetfilter_queue accidentally exports the internal function named
'checksum'. This is a bit too generic and may cause crashes with
applications that worked fine before.
This patch makes the functions checksum, checksum_tcpudp_ipv4 and
checksum_tcpudp_ipv6 local by building with fvis-hidden and adding
EXPORTs for the legacy api calls and the ones that seem to have missing
EXPORT tags (mainly pktbuff api).
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/internal.h')
-rw-r--r-- | src/internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/internal.h b/src/internal.h index 37bf79e..7f9d5f4 100644 --- a/src/internal.h +++ b/src/internal.h @@ -2,6 +2,8 @@ #define INTERNAL_H 1 #include "config.h" +#include <stdint.h> +#include <stdbool.h> #ifdef HAVE_VISIBILITY_HIDDEN # define __visible __attribute__((visibility("default"))) # define EXPORT_SYMBOL(x) typeof(x) (x) __visible |