summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorvangyzen <vangyzen@FreeBSD.org>2017-03-10 20:38:18 +0000
committervangyzen <vangyzen@FreeBSD.org>2017-03-10 20:38:18 +0000
commitf21fbb3c5d03938f64b646d4b8abde71145ca2d9 (patch)
treefa1f2ab0eb6a4b29bd7424ada71bf113822612ce /sys/kern
parent51b7c737fb7424e4272adf780b2df01d5b808d3c (diff)
downloadFreeBSD-src-f21fbb3c5d03938f64b646d4b8abde71145ca2d9.zip
FreeBSD-src-f21fbb3c5d03938f64b646d4b8abde71145ca2d9.tar.gz
MFC r313820
pf: use inet_ntoa_r() instead of inet_ntoa(); maybe fix IPv6 OS fingerprinting inet_ntoa() cannot be used safely in a multithreaded environment because it uses a static local buffer. Instead, use inet_ntoa_r() with a buffer on the caller's stack. This code had an INET6 conditional before this commit, but opt_inet6.h was not included, so INET6 was never defined. Apparently, pf's OS fingerprinting hasn't worked with IPv6 for quite some time. This commit might fix it, but I didn't test that. Relnotes: yes (if I/someone can test pf OS fingerprinting with IPv6) Sponsored by: Dell EMC
Diffstat (limited to 'sys/kern')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud