summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc/stdlib/t_random.c
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-01-07 09:07:12 +0000
committerngie <ngie@FreeBSD.org>2017-01-07 09:07:12 +0000
commit63d0e2cbf19d0378d9bfa690de563871bff1af91 (patch)
treee5255b0181ed25f0fe2c580e288a60ff043950f9 /contrib/netbsd-tests/lib/libc/stdlib/t_random.c
parentded84474f288d9c251b6eff870889cb4aebda4db (diff)
downloadFreeBSD-src-63d0e2cbf19d0378d9bfa690de563871bff1af91.zip
FreeBSD-src-63d0e2cbf19d0378d9bfa690de563871bff1af91.tar.gz
MFC r310501:
Be more strict about IpAddress type in snmp_value_parse(..) - Use inet_pton with AF_INET instead of doing longhand with sscanf. - Use gethostbyname2 with AF_INET to ensure that the hostname isn't accidentally parsed with another address family, e.g. AF_INET6. NB: IpAddress per RFC-2578 is IPv4 only. Work is in progress to add the InetAddress type and friends documented in RFC-4001 and elsewhere (which supports IPv4, IPv6, and more).
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/stdlib/t_random.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud