aboutsummaryrefslogtreecommitdiff
path: root/contrib/tcp_wrappers/tcpdchk.c
Commit message (Collapse)AuthorAgeFilesLines
* tcp_wrappers: Use ANSI (c89) function definitionsEd Maste2023-04-051-23/+10
| | | | | | | | | | | 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 headers instead of manual declerations of standard functions andBrooks Davis2019-07-171-6/+1
| | | | | | | variables. Notes: svn path=/head/; revision=350100
* Use ANSI C function definitions and declerations.Brooks Davis2019-07-171-10/+10
| | | | | | | | | Obtained from: CheriBSD MFC after: 1 week Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=350098
* TCP Wrappers: tcpdchk (tcp wrapper configuration checker) and tcpdmatchSean Bruno2017-06-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (tcp wrapper oracle) warning fixes via edits to the C code files contrib/tcp_wrappers/fakelog.c Warnings for each of functions: openlog( ), vsyslog( ), VARARGS( ), closelog( ) warning: type specifier missing, defaults to 'int' [-Wimplicit-int] warning: control reaches end of non-void function [-Wreturn-type] Fixes: Explicitly added specification of function type to void for each function, suppressing both warnings for each function listed contrib/tcp_wrappers/inetcf.c Warnings: warning: incompativle redeclaration of library function 'malloc' note: 'malloc' is a builtin with type 'void *(unsigned long)' warning: implicit declaration of function 'check_path' is invalid in C99 [-Wimplicit-function-declaration] Fixes: Removed redeclaration of malloc on line 21 Included library <stdlib.h> in the code which contains the malloc( ) function in it's library Included scaffold.h header file in the code that contains check-path( ) function contrib/tcp_wrappers/scaffold.c Warnings: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] note: include the header <stdlib.h> or explicitly provide a declaration for 'exit' Fixes: Included <stdlib.h> in the code which contains the exit( ) function in it's library contrib/tcp_wrappers/tcpdchk.c Warnings: warning: implicit declaration of function 'getopt' is invalid in C99 [-Wimplicit-function-declaration] warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] Fixes: Included the specific function <getopt.h> library to the code Included<stdlib.h> to the code which contains the atoi( ) function in the library contrib/tcp_wrappers/tcpdmatch.c Warnings: warning: implicit declaration of function 'getopt' is invalid in C99 [-Wimplicit-function-declaration] Fixes: Included<stdlib.h> to the code which contains the getopt( ) function in the library Submitted by: Aaron Prieger <aprieger@llnw.com> Reviewed by: vangyzen Sponsored by: Limelight Networks Differential Revision: https://reviews.freebsd.org/D10995 Notes: svn path=/head/; revision=320033
* Add IPv6 scoped address support.Hajimu UMEMOTO2000-07-141-3/+8
| | | | | | | | | | | 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/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add the ``blacklist'' feature, which allows a path to a filename toSheldon Hearn1999-09-211-0/+26
| | | | | | | | | | | be used as a valid pattern in the access control language. Patch obtained from ftp://ftp.porcupine.org/pub/security/ . Requested by: markm Notes: svn path=/head/; revision=51495
* Clean import of TCP-wrappers by Wietse Venema.vendor/tcp_wrappers/7.6Mark Murray1999-03-141-0/+462
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