summaryrefslogtreecommitdiffstats
path: root/usr.sbin/inetd/inetd.c
Commit message (Collapse)AuthorAgeFilesLines
* When printing the wait status, break it down into a signal and a exit status.dwmalone2002-09-041-4/+10
| | | | | | PR: 41912 Submitted by: Aaron Smith <aaron@mutex.org> MFC after: 2 weeks
* Swap sense of no_v[46]bind variables and rename as v[46]bind_ok -dwmalone2002-09-041-19/+19
| | | | | | | this avoids some double negatives which are a bit difficult to parse. Always tread v[46]bind{,_ok} as booleans.
* Fix parsing of unix domain entries after addition of IPv6 RPC support.dwmalone2002-09-041-38/+39
| | | | | PR: 40771 Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
* Don't initialise policy, v4bind and v6bind where the variables aredwmalone2002-09-021-3/+10
| | | | | | | | | | | declared - it was bad style and caused a bug. v[46]bind need to be reset whenever we go to the "more:" label. Jean-Luc and I came up with this patch independently, so it had better be right! PR: 40771 Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
* tpc -> tcp in an error message.dwmalone2002-09-021-2/+2
| | | | | PR: 40771 Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
* Clear up a few warnings (unused variable, rpc versions are usigned so use %u,dwmalone2002-09-021-8/+7
| | | | | | rename a parameter to avoid shadowing a global). MFC after: 1 month
* Add capability for limiting the maximum number of simultaneousume2002-08-071-3/+283
| | | | | | | | | invocations of each service from a single IP address. Requested by: matusita Reviewed by: dwmalone Tested by: matusita on snapshots.jp.FreeBSD.org MFC after: 2 weeks
* use IPV6_V6ONLY instead of non standard IPV6_BINDV6ONLY.ume2002-07-221-4/+2
| | | | MFC after: 1 week
* add support for rpc IPv6 (rpc/udp/46 ...)alfred2002-07-151-32/+99
| | | | Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
* Replace the SWAP(var0,var1) macro with SWAP(type,var0,var1) and use it asjmallett2002-06-221-9/+9
| | | | | | | | | is appropriate to avoid using typeof/__typeof__. It is worth noting that SWAP() is only ever used to swap pointer values so 'void *' assumptions would have been acceptable, but I'd gladly pay you tuesday for a cheeseburger^W cleaner interface today. Poked into submission by: bde
* Unused macro.jmallett2002-06-221-1/+0
|
* __FBSDID() strategic insertion.jmallett2002-06-211-2/+3
|
* Kill __P, yuck.jmallett2002-06-211-22/+22
|
* Mark unused variables __unused.jmallett2002-06-211-3/+3
| | | | Built standalone, inetd(8) is WARNS=5 clean, WARNS=6 if you ignore %m fits.
* Use __typeof__ instead of typeof.jmallett2002-06-211-1/+1
|
* ANSI prototypes via protoize(1).jmallett2002-06-211-56/+28
|
* Log invalid config entries. Make the -d option actually log tojwd2002-05-261-4/+7
| | | | | | | the terminal(-d fix from dwmalone). Approved by: dwmalone MFC after: 2 weeks
* Make compilable without -DINET6.ume2002-05-081-2/+2
|
* Log address family of a connection.ume2002-05-081-4/+6
| | | | | Requested by: matusita Reviewed by: matusita
* o Remove old setproctitle.dwmalone2001-07-171-47/+5
| | | | | | | | o Mark unused variables. o Set WARNS?=2 o Results in no code changes. Submitted by: Mike Barcroft <mike@q9media.com>
* Fix most of the warnings given by WARNS=2.dwmalone2001-06-241-38/+65
|
* Give inetd the ability to manage unix domain sockets. Details ofdwmalone2001-06-161-10/+95
| | | | | | | | | | | how to use this feature are in the man page. This is based on work by Lyndon Nerenberg. (The only difficult part about this patch is the fact that you can't fchown a unix domain socket, which means the sockets must be put in a secure directory). Reviewed by: dillon
* Get rid of se_ctladdrinitok, which doesn't do anything and seemesdwmalone2001-06-061-14/+0
| | | | | | | to have been accidently imported when ipv6 support was added to inetd. Approved by: ume
* Recently, other BSDs had faith support in inetd. Though our inetd hasume2001-05-311-1/+7
| | | | | | | | it already, their syntax is not compatible with ours. It will confuse users. So, we have compatibility with their syntex. Approved by: dwmalone Obtained from: NetBSD
* Various cleanups of inetd: Avoid shadowing variables, use socklen_tdwmalone2001-01-221-19/+17
| | | | | | | instead of ints, don't cast to char *, clear up some remote name handling code which had become a little odd. Should result in no functional changes.
* Don't mention /etc/protocols in inetd documentation or comments, as inetddwmalone2001-01-221-2/+2
| | | | | | | doesn't actually use it. PR: 24307 Submitted by: opentrax@email.com
* Tidy up some prototypes:dwmalone2000-12-031-4/+8
| | | | | | | make sure there is exactly one prototype for each function, use K&R style definitions everywhere to match dominant style, make flag_signal take an int to avoid problems if we have ANSI prototypes and K&R definitions.
* Fix two typos in comments.dwmalone2000-10-241-1/+1
| | | | | PR: 22268 Submitted by: Daniel S. Lewart <d-lewart@uiuc.edu>
* Don't leak a file discriptor if a service we've called accept() fordwmalone2000-10-211-0/+3
| | | | | | loops. Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
* Make reconfiguring an external service as builtin service work.dwmalone2000-10-021-0/+1
| | | | | | PR: 21650 Submitted by: ben Tested by: dan@ducky.nz.freebsd.org
* Explain "-c" option more exactly and state the default in the mandwmalone2000-08-031-7/+9
| | | | | | | | | | | | | page. Add ability to run "inetd -R 0" to disable the default connection per minute limit of 256 connections. Document this in man page. Don't use maxchild as a boolean - instead check if it is greater than zero. Reviewed by: sheldonh Based on a patch by: Alexander Langer <alex@big.endian.de>
* Sleep for a second after tcp wrappers rejects a connection, so wedwmalone2000-07-311-1/+3
| | | | | | | don't traumatise the parent inetd. Requested by: wietse@porcupine.org Approved by: markm
* Make sure to use IPv4 mapped IPv6 address when mapped address isume2000-04-021-5/+6
| | | | | | requested in /etc/inetd.conf. Reviewed by: shin
* Make inetd compilable without INET6.shin2000-03-111-2/+2
| | | | | | Approved by: jkh Submitted by: jhb
* Fix broken inet logging when wrapping options are not specified.shin2000-02-221-2/+2
| | | | | | Approved by: jkh Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
* Fix inetd wrong AF check for RPC servicesshin2000-02-031-2/+3
| | | | | | | | | | | | Incorrect Address Family check is done for RPC services, and fail to initialize it. The error check is replaced to new one, which checks if IPv4 bind is enabled or not. (It is disabled when IPv6 numeric addr is specified for -a bind address option.) An review reqeust is once sent to des, but he quit MAINTAINER. Approved by: jkh
* Fix inconsistent debug output. (syslog -> warnx)shin2000-01-281-12/+8
| | | | | | Specified by: sheldonh Reviewed by: des
* Avoid verbose error messages when ipsec initialization for sockets failedshin2000-01-271-2/+4
| | | | | usually, and print it only when debug is enabled. (This always happens when kernel is configured without IPSEC option.)
* several tcp apps IPv6 updateshin2000-01-251-76/+540
| | | | | | | | | | | | -inetd -rshd -rlogind -telnetd -rsh -rlogin Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* Do not dot terminate sentences inside FILES section. Lowercasecharnier2000-01-231-5/+5
| | | | inside error messages.
* Put the listening socket into non-blocking mode before doing anpeter1999-11-171-0/+8
| | | | | | | | | accept(2). This is a not really problem on -current as the accept race is fixed, however it is a MFC candidate for -stable. This could possibly be slightly more efficient and leave the listening socket permanently in non-blocking mode, but I wasn't certain that I could catch all the stream/wait (not nowait) mode implications.
* Do not dot or \n terminate syslog string.charnier1999-10-131-3/+3
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Bring two wayward memory allocation failure messages in line withsheldonh1999-07-261-3/+3
| | | | those featured in the rest of the code.
* Don't match up TCP services with UDP sockets.des1999-07-231-3/+4
|
* Relegate the diagnostic descriptor counter to the -DSANITY_CHECK case.sheldonh1999-07-221-4/+10
|
* Remove unnecessary macro introduced in previous commit.sheldonh1999-07-221-4/+5
| | | | | | | Also, the previous commit failed to reference: PR: 12731 Submitted by: dwmalone@maths.tcd.ie (David "Inetd" Malone)
* Don't leak pipe descriptor to daemons on execv().sheldonh1999-07-221-4/+6
|
* Signal handlers should use _exit(2) and not exit(3).sheldonh1999-07-221-2/+2
|
* Move code for all builtin services from inetd.c to builtins.c, includingsheldonh1999-07-221-582/+7
| | | | | | | the Green Piece. :-) In future, new builtin services are less likely to need to touch the already tangled inetd.c .
OpenPOWER on IntegriCloud