aboutsummaryrefslogtreecommitdiff
path: root/contrib/tcp_wrappers/socket.c
Commit message (Collapse)AuthorAgeFilesLines
* tcp_wrappers: Use ANSI (c89) function definitionsEd Maste2023-04-051-8/+4
| | | | | | | | | | | Although this code is in contrib/ there is no active upstream. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D36047 (cherry picked from commit 14f102eacc8434a5a1f96466752578a4167140c9) (cherry picked from commit 899becbfcbf75008c560bae5e5fce0c205a5bc82)
* Use ANSI C function definitions and declerations.Brooks Davis2019-07-171-3/+2
| | | | | | | | | Obtained from: CheriBSD MFC after: 1 week Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=350098
* NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 definesHajimu UMEMOTO2005-05-131-8/+4
| | | | | | | | NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special for it, now. Notes: svn path=/head/; revision=146187
* Correct compilation with "#define really_paranoid".Ceri Davies2003-12-271-1/+1
| | | | | | | | PR: bin/59674 Submitted by: Vaclav Rehak <vasek@zoom-int.cz> Notes: svn path=/head/; revision=123895
* Unbreak "paranoid" host checking, which was broken with the IPv6 codeKris Kennaway2001-07-041-1/+1
| | | | | | | | | import. Submitted by: Tony Finch <dot@dotat.at> Notes: svn path=/head/; revision=79249
* - reject numeric addressHajimu UMEMOTO2000-09-251-0/+22
| | | | | | | | | | | - validate scope in sockaddr comparison logic patch was originally submitted by itojun and slightly modified by me. Reviewed by: itojun, kris Notes: svn path=/head/; revision=66329
* Don't touch ai_canonname without checking NULL. CurrentHajimu UMEMOTO2000-09-231-3/+6
| | | | | | | | | | | implementation of getaddrinfo() may return NULL ai_canonname. There is no consensus how getaddrinfo() should fill ai_canonname when numeric hostname is given. Reported by: kris Notes: svn path=/head/; revision=66297
* Add IPv6 scoped address support.Hajimu UMEMOTO2000-07-141-118/+139
| | | | | | | | | | | It enables us to control link-local connections by interface like this: ALL : [fe80::%ed0]/10 : allow ALL : [fe80::]/10 : deny Notes: svn path=/head/; revision=63158
* Missing tcp_wrapper IPv6 support seemed to be a bug, so commit it.Yoshinobu Inoue2000-02-031-0/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | Now when tcp_wrapper is enabled by inetd -wW, several accesses which should be permitted are refused only for IPv6, if hostname is used to decide the host to be allowed. IPv6 users will be just upset. About security related concern. -All extensions are wrapped by #ifdef INET6, so people can completely disable the extension by recompile libwrap without INET6 option. -Access via IPv6 is not enabled by default. People need to enable IPv6 access by changing /etc/inetd.conf at first, by adding tcp6 and/or tcp46 entries. -The base of patches are from KAME package and are actually daily used for more than a year in several Japanese IPv6 environments. -Patches are reviewed by markm. Approved by: jkh Submitted by: Hajimu UMEMOTO <ume@mahoroba.org> Reviewed by: markm Obtained from: KAME project Notes: svn path=/head/; revision=56977
* Clean import of TCP-wrappers by Wietse Venema.vendor/tcp_wrappers/7.6Mark Murray1999-03-141-0/+235
Rest of build to follow. Notes: svn path=/vendor/tcp_wrappers/dist/; revision=44743 svn path=/vendor/tcp_wrappers/7.6/; revision=44745; tag=vendor/tcp_wrappers/7.6