summaryrefslogtreecommitdiffstats
path: root/addr.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* upstream: Use strtonum() instead of severely non-idomaticderaadt@openbsd.org2024-04-301-5/+7
| | | | | | | strtoul() In particular this will now reject trailing garbage, ie. '12garbage'. ok djm OpenBSD-Commit-ID: c82d95e3ccbfedfc91a8041c2f8bf0cf987d1501
* upstream: fix test: getnameinfo returns a non-zero value on error, notdjm@openbsd.org2023-03-271-2/+2
| | | | | | (neccessarily) -1. From GHPR#384 OpenBSD-Commit-ID: d35e2b71268f66f5543a7ea68751972b3ae22b25
* upstream: allow ssh-keyscan(1) to accept CIDR address ranges, e.g.djm@openbsd.org2022-10-281-1/+72
| | | | | | | | | | | ssh-keyscan 192.168.0.0/24 If a CIDR range is passed, then it will be expanded to all possible addresses in the range including the all-0s and all-1s addresses. bz#976 feedback/ok markus@ OpenBSD-Commit-ID: ce6c5211f936ac0053fd4a2ddb415277931e6c4b
* upstream: be stricter in which characters will be accepted indjm@openbsd.org2022-05-021-2/+2
| | | | | | | specifying a mask length; allow only 0-9. From khaleesicodes via GHPR#278; ok dtucker@ OpenBSD-Commit-ID: e267746c047ea86665cdeccef795a8a56082eeb2
* upstream: Plug mem addrinfo mem leaks.dtucker@openbsd.org2021-10-221-5/+17
| | | | | | | | Prevent mem leaks in the (unlikely) event that getaddrinfo returns no addresses. ALso, remove an unneeded NULL check in addr_ntop. From khaleesicodes via github PR#281, ok deraadt@ OpenBSD-Commit-ID: e8a5afc686376637c355c5f7e122dc4b080b9c1a
* upstream: Remove unnecessary semicolonsdtucker@openbsd.org2021-10-221-3/+3
| | | | | | ... in case statements. From khaleesicodes via github PR#280. OpenBSD-Commit-ID: e1e89360b65775cff83e77ce040b342015caf4ed
* upstream: Fix typos in comments.dtucker@openbsd.org2021-10-221-3/+3
| | | | | | From khaleesicodes via github PR#280. OpenBSD-Commit-ID: 26fdd83652c40f098bf7c685e8ebb9eb72cc45fc
* ifdef new instance of sin6_scope_idDarren Tucker2021-01-231-0/+2
| | | | | Put inside HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID similar to existing instance. Should fix error on UnixWare 7.
* upstream: Move address handling functions out into their own filedtucker@openbsd.org2021-01-111-0/+421
in order to reuse them for per-source maxstartups limiting. Supplement with some additional functions from djm's flowtools that we'll also need. ok djm@ (as part of a larger diff). OpenBSD-Commit-ID: e3e7d9ccc6c9b82e25cfef0ec83598e8e2327cbf