]> The Tcpdump Group git mirrors - libpcap/commit
Try to make pcap_compile() thread-safer.
authorGuy Harris <[email protected]>
Sun, 28 Jan 2018 07:09:39 +0000 (23:09 -0800)
committerGuy Harris <[email protected]>
Sun, 28 Jan 2018 07:09:39 +0000 (23:09 -0800)
commitac690905a78f794507b209e87197f636f598d51f
tree720f328e0254d23e0c04be5c51e33f40abbbc721
parent76aeb920f4698a9544c32da50fc3b84cdc080ae7
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.
CMakeLists.txt
aclocal.m4
cmakeconfig.h.in
config.h.in
configure
gencode.c
nametoaddr.c
pcap/namedb.h