summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/inet_net_pton.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* spelling fixes; from paul tagliamontejmc2022-12-271-2/+2
| | | | | any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;
* Fix typo in last commit.millert2022-04-131-2/+2
|
* inet_net_pton_ipv6: avoid signed vs unsigned comparisonmillert2022-04-131-3/+5
| | | | | | | Use a temporary variable to store the number of bytes to be copied (size_t) and also use it as the memcpy(3) length. Previously we copied "size" bytes instead of just the necessary number. OK claudio@ tb@
* Prevent an overflow in inet_net_pton(3) when the passed in buffer isflorian2021-01-191-11/+18
| | | | | | | | | | | | | | | | | too small in the AF_INET6 case. Spotted by Brad House (brad AT brad-house.com) with the c-ares regression test. The man page says Caution: The dst field should be zeroed before calling inet_net_pton() as the function will only fill the number of bytes necessary to encode the network number in network byte order. Which seems to suggest that the function should work if the passed in storage is big enough to hold the prefix, which might be smaller than sizeof(in6_addr). Input & OK tb
* size is unsigned so using ==0 not <=0 when checking for buffer exhaustionmillert2017-03-061-4/+4
|
* Pull in a change from the bind 8 resolver that fixes a potentialmillert2017-03-061-10/+16
| | | | | crash when given a large hex number as part of the dotted quad. OK deraadt@ jsg@
* unsigned char changes for ctypederaadt2013-11-251-10/+11
| | | | re-re-reviewed by krw
* add support for AF_INET6 to inet_net_pton() and inet_net_ntop()gilles2012-06-221-1/+40
| | | | | | using inet_pton() and inet_ntop() as suggested by claudio ok claudio@
* do not overflow for large prefix len (e.g. 2147483649)markus2008-09-011-3/+3
| | | | report Maksymilian Arciemowicz; ok djm, deraadt
* zap rcsid.espie2005-08-061-9/+1
| | | | | | | split functions off res_debug.c so that getnetnamadr.c does not pull it all when it's used. okay deraadt@, krw@
* ansify. ok deraadt@ moritz@otto2005-03-251-11/+4
|
* always widen the imputed netmask if it is narrower than the specified octets.henning2003-04-251-3/+3
| | | | | | | | | fixes a strange behaviour where inet_net_pton would always return 4 (bits) for multicast addresses no matter how many octets were specified. negotiated with Paul Vixie, original author of this function. ok millert@
* Manual cleanup of remaining userland __P use (excluding packages maintained ↵millert2002-02-171-4/+3
| | | | outside the tree)
* Integrate BIND 4.9.5 resolver and associated routines.downsj1997-03-131-0/+207
Includes the DNS aware getnetby*() routines and IPv6 support.