diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-01-27 23:09:39 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-01-27 23:09:39 -0800 |
commit | ac690905a78f794507b209e87197f636f598d51f (patch) | |
tree | 720f328e0254d23e0c04be5c51e33f40abbbc721 /cmakeconfig.h.in | |
parent | 76aeb920f4698a9544c32da50fc3b84cdc080ae7 (diff) |
Try to make pcap_compile() thread-safer.
Always use getaddrinfo() for name-to-address lookups; it's the only
portable API that lets you do those lookups in a thread-safe fashion.
This means we require getaddrinfo(); yes, this leaves older OSes out in
the cold - you'd have to provide your own getaddrinfo() on older OSes
that lack it, just as you now will need to provide versions of Flex and
bison/Berkeley YACC that can support reentrant scanners/parsers on older
OSes that lack it, and compilers capable of supporting some C99 features
on older platforms that lack it.
Try to find reentrant versions of getnetbyname() and getprotobyname();
that's a pain, and, if none are found, we'll just have to hope that the
native versions are thread-safe, which they aren't on NetBSD and
OpenBSD.
Diffstat (limited to 'cmakeconfig.h.in')
-rw-r--r-- | cmakeconfig.h.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cmakeconfig.h.in b/cmakeconfig.h.in index d526c61c..e1630f2a 100644 --- a/cmakeconfig.h.in +++ b/cmakeconfig.h.in @@ -9,6 +9,12 @@ /* Define to 1 if remote packet capture is to be supported */ #cmakedefine ENABLE_REMOTE 1 +/* define if we have the AIX getnetbyname_r() */ +#cmakedefine HAVE_AIX_GETNETBYNAME_R 1 + +/* define if we have the AIX getprotobyname_r() */ +#cmakedefine HAVE_AIX_GETPROTOBYNAME_R 1 + /* define if you have the DAG API */ #cmakedefine HAVE_DAG_API 1 @@ -78,6 +84,12 @@ /* Define to 1 if you have the <linux/ethtool.h> header file. */ #cmakedefine HAVE_LINUX_ETHTOOL_H 1 +/* define if we have the Linux getnetbyname_r() */ +#cmakedefine HAVE_LINUX_GETNETBYNAME_R 1 + +/* define if we have the Linux getprotobyname_r() */ +#cmakedefine HAVE_LINUX_GETPROTOBYNAME_R 1 + /* Define to 1 if you have the <linux/if_bonding.h> header file. */ #cmakedefine HAVE_LINUX_IF_BONDING_H 1 @@ -147,6 +159,12 @@ /* On solaris */ #cmakedefine HAVE_SOLARIS 1 +/* define if we have the Solaris/IRIX getnetbyname_r() */ +#cmakedefine HAVE_SOLARIS_IRIX_GETNETBYNAME_R 1 + +/* define if we have the Solaris/IRIX getprotobyname_r() */ +#cmakedefine HAVE_SOLARIS_IRIX_GETPROTOBYNAME_R 1 + /* Define to 1 if you have the <stdint.h> header file. */ #cmakedefine HAVE_STDINT_H 1 |