Up to [cvs.NetBSD.org] / src / usr.sbin / inetd
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.141 / (download) - annotate - [select for diffs], Wed Aug 10 08:37:53 2022 UTC (19 months, 1 week ago) by christos
Branch: MAIN
CVS Tags: triaxx-drm,
netbsd-10-base,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
HEAD
Changes since 1.140: +2 -10
lines
Diff to previous 1.140 (colored)
PR/56963: Mark Davies: inetd not configured for rpc Move RPC includes to inetd.h
Revision 1.140 / (download) - annotate - [select for diffs], Wed Aug 10 03:35:38 2022 UTC (19 months, 1 week ago) by dholland
Branch: MAIN
Changes since 1.139: +2 -7
lines
Diff to previous 1.139 (colored)
PR bin/56963 Mark Davies: inetd not configured for rpc Instead of using negative flags to turn on positive flags, set -DRPC in the makefile. Corrects a problem where the SunRPC code in parse.c was accidentally left disabled. This is a prime example of why we don't like negative flags...
Revision 1.139 / (download) - annotate - [select for diffs], Sun Oct 17 04:14:49 2021 UTC (2 years, 5 months ago) by ryo
Branch: MAIN
Changes since 1.138: +257 -36
lines
Diff to previous 1.138 (colored)
To an alias address, or in a multihoming environment, the internal dgram server may respond from a different address than the destination address sent by the client. To solve this problem, I introduce sendfromto() and recvfromto() so that the server can reply from the correct address, i.e., the destination address used in the request. This change also has the aspect of a reference implementation using the RECVDSTADDR and PKTINFO socket options.
Revision 1.138 / (download) - annotate - [select for diffs], Tue Oct 12 22:51:28 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.137: +3 -3
lines
Diff to previous 1.137 (colored)
inetd: remove trailing whitespace, add space after 'if' and 'for' No functional change.
Revision 1.137 / (download) - annotate - [select for diffs], Tue Oct 12 19:08:04 2021 UTC (2 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.136: +34 -1598
lines
Diff to previous 1.136 (colored)
PR/56448: Solomon Ritzow: Various improvements. Rate limiting code has been moved to ratelimit.c. I renamed clear_ip_list to rl_clear_ip_list and broke the code up into more functions. I have also made the per-IP rate limiting allocation more efficient. IP addresses are now stored in their network format instead of a string from getnameinfo (see inetd.h struct rl_ip_node). malloc calls use only the space needed by the structure by using offsetof on union members (I suppose this can be a bit dangerous if not done correctly...). Per-IP rate limiting still supports textual comparison using getnameinfo for address families other than AF_INET and AF_INET6, but I don't think there are any that are actually compatible or used by inetd (I haven't tested UNIX sockets with a remote bound to another file, but I did test using IPv6 with the textual format by commenting out the IPv6 specific code, and it works properly). Still potentially handy for the future. The IP node list (se_rl_ip_list) now uses the <sys/queue.h> SLIST macros instead of a custom list. I've broken rl_process up into helper functions for each type of rate limiting and created a separate function for address stringification, for use with printouts from the -d flag. I tried to reduce stack memory use by moving printing code involving string buffers into separate functions. I haven't tested rl_ipv6_eq on a 32-bit system. The code for the positional syntax has also been moved to parse.c. Function try_biltin has been added to remove parse.c:parse_server's dependency on the biltin structure definition. File inetd.h has been updated with the proper function prototypes, and the servtab structure has been update with the new IP node SLIST. I also moved things around a bit. The way we (a peer and myself) formatted inetd.h previously was somewhat confusing. Function and global variable prototypes are now organized by the source file they are defined in. I also added a -f flag that I saw in another problem report (https://gnats.netbsd.org/12823) that I thought could be useful. It runs inetd in the foreground but without debug printouts or SO_DEBUG. I'm not completely sure about the line "if (foreground) setsid()" that I changed from "if (debug) setsid()".
Revision 1.136 / (download) - annotate - [select for diffs], Fri Sep 3 21:02:04 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.135: +3 -3
lines
Diff to previous 1.135 (colored)
inetd: remove redundant tests before calling isspace
Revision 1.135 / (download) - annotate - [select for diffs], Fri Sep 3 20:41:19 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.134: +11 -19
lines
Diff to previous 1.134 (colored)
inetd: remove redundant null check before free No functional change.
Revision 1.134 / (download) - annotate - [select for diffs], Fri Sep 3 20:24:28 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.133: +77 -79
lines
Diff to previous 1.133 (colored)
inetd: prepare for lint's strict bool mode Lint's strict bool mode considers bool incompatible with the other scalar types. This makes the type of expressions more visible in the code. In particular, conditions of the form '!strcmp(...)' are no longer allowed, they have to be written as 'strcmp(...) == 0'. The operator '!' cannot be used with sep->se_wait since that has type pid_t, not bool. No change to the resulting binary.
Revision 1.133 / (download) - annotate - [select for diffs], Fri Sep 3 19:33:51 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.132: +7 -7
lines
Diff to previous 1.132 (colored)
inetd: normalize indentation and alignment in comments
Revision 1.132 / (download) - annotate - [select for diffs], Tue Aug 31 19:34:42 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.131: +3 -3
lines
Diff to previous 1.131 (colored)
inetd: fix Clang build error: implicit conversion changes signedness: 'service_type' to 'int'
Revision 1.131 / (download) - annotate - [select for diffs], Mon Aug 30 18:21:11 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.130: +20 -18
lines
Diff to previous 1.130 (colored)
inetd: raise WARNS from 5 to 6 The necessary fixes include: * explicit integer conversions, to get rid of mixed signedness * function prototypes for parameterless functions While here: * add space after comma * add space after 'if' * place the '{' of a function definition on a separate line * rename variables 'bits' and 'temp' to 'hi' and 'lo' * in parse_quote, prefer expressions over assignments * make hex_to_bits static No functional change.
Revision 1.130 / (download) - annotate - [select for diffs], Mon Aug 30 17:32:23 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.129: +74 -74
lines
Diff to previous 1.129 (colored)
inetd: remove trailing whitespace
Revision 1.129 / (download) - annotate - [select for diffs], Mon Aug 30 08:21:12 2021 UTC (2 years, 6 months ago) by mlelstv
Branch: MAIN
Changes since 1.128: +4 -4
lines
Diff to previous 1.128 (colored)
Fix reverted logic when parsing server program. Compare pointer with NULL not 0.
Revision 1.128 / (download) - annotate - [select for diffs], Sun Aug 29 11:43:25 2021 UTC (2 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.127: +6 -6
lines
Diff to previous 1.127 (colored)
fix printf formats (intmax -> j)
Revision 1.127 / (download) - annotate - [select for diffs], Sun Aug 29 09:54:18 2021 UTC (2 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.126: +1130 -426
lines
Diff to previous 1.126 (colored)
Inetd enhancements by James Browning, Gabe Coffland, Alex Gavin, Solomon Ritzow Described in: https://www.mail-archive.com/tech-userlevel@netbsd.org/msg03114.html And developed in: https://github.com/ritzow/src/pull/1 From their notes: All new functionality should be explained by the updated manpage. The manpage has been refactored a bit: A new section "Directives" has been added and the information about default hostnames and IPsec directives has been moved there, and the new file include directive information is also there. getconfigent has the most major changes. A newline is no longer read immediately, but is called only by a "goto more" (inside an if(false) block). This allows multiple definitions or directives to exist on a single line for anything that doesn't terminate using a newline. This means a key-values service definition can be followed by another key-values service definition, a positional definition, or an ipsec, hostname, or .include directive on the same line. memset is no longer used explicitly to clear the servtab structure, a function init_servtab() is used instead, which uses a C struct initializer. The servtab se_group field is its own allocation now, and not just a pointer into the user:group string. Refactored some stuff out of getconfigent to separate functions for use by parse_v2.c. These functions in inetd.c are named with the form parse_*() parse_v2.c only has code for parsing a key-values service definition into a provided servtab. It should not have anything that affects global state other than line and line_number. Some function prototypes, structures, and #defines have been moved from inetd.c to inetd.h. The function config_root replaces config as the function called on a config file load/reload. The code removed from the end of config(void) is now called in config_root, so it is not run on each recursive config call. setconfig(void) was removed and its code added into config_root because that is the only place it is called, and redundant checks for non-null globals were removed because they are always freed by endconfig. The fseek code was also removed because the config files are always closed by endconfig. Rate limiting code was updated to add a per-service per-IP rate limiting form. Some of that code was refactored out of other places into functions with names in the form rl_*() We have not added any of the license or version information to the new files parse_v2.c, parse_v2.h, and inetd.h and we have not updated the license or version info for inetd.c. Security related: The behavior when reading invalid IPsec strings has changed. Inetd no longer exits, it quits reading the current config file instead. Could this impact program security? We have not checked for memory leaks. Solomon tried to use dmalloc without success. getconfigent seemed to have a memory leak at each "goto more". It seems like inetd has never free'd allocated strings when throwing away erroneous service definitions during parsing (i.e. when "goto more" is called when parsing fields). OpenBSD's version calls freeconfig on "goto more" (https://github.com/openbsd/src/blob/c5eae130d6c937080c3d30d124e8c8b86db7d625/usr.sbin/inetd/inetd.c#L1049) but NetBSD only calls it when service definitions are no longer needed. This has been fixed. freeconfig is called immediately before any "goto more". There shouldn't be any time when a servtab is in an invalid state where freeconfig would break.
Revision 1.126 / (download) - annotate - [select for diffs], Fri Dec 27 09:22:20 2019 UTC (4 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
is-mlppp-base,
is-mlppp,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Changes since 1.125: +3 -3
lines
Diff to previous 1.125 (colored)
s/suport/support/
Revision 1.125 / (download) - annotate - [select for diffs], Tue Nov 28 11:51:11 2017 UTC (6 years, 3 months ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-base,
phil-wifi-20191119,
phil-wifi-20190609,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat,
netbsd-9-base,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9
Branch point for: phil-wifi
Changes since 1.124: +5 -5
lines
Diff to previous 1.124 (colored)
Bump MAXARGV from 20 to 64 - with bozohttpd and all config on the command line it is easy to hit the (silent) limit.
Revision 1.124 / (download) - annotate - [select for diffs], Tue Oct 17 07:13:19 2017 UTC (6 years, 5 months ago) by ozaki-r
Branch: MAIN
Changes since 1.123: +12 -9
lines
Diff to previous 1.123 (colored)
Don't setup SPs if no policy sepecifier is specified We expect that SPs are set up iff some policy sepecifier(s) are specified. Found on investigating an issue reported by Robert Swindells
Revision 1.123 / (download) - annotate - [select for diffs], Wed Feb 15 02:48:31 2017 UTC (7 years, 1 month ago) by elric
Branch: MAIN
CVS Tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-8-base,
bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.122: +3 -3
lines
Diff to previous 1.122 (colored)
Increase buffer size reported to strlcpy() to be one larger than the length of the string we copy in so that there is space for the '\0'.
Revision 1.122 / (download) - annotate - [select for diffs], Sat Apr 5 23:36:10 2014 UTC (9 years, 11 months ago) by khorben
Branch: MAIN
CVS Tags: yamt-pagecache-base9,
tls-maxphys-base,
tls-earlyentropy-base,
pgoyette-localcount-base,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
localcount-20160914,
bouyer-socketcan-base
Branch point for: pgoyette-localcount,
netbsd-7,
bouyer-socketcan
Changes since 1.121: +4 -4
lines
Diff to previous 1.121 (colored)
Use base 10 when logging the exit status or exit signal for sub-processes, instead of hexadecimal.
Revision 1.121 / (download) - annotate - [select for diffs], Thu Dec 13 19:38:40 2012 UTC (11 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
agc-symver-base,
agc-symver
Branch point for: tls-earlyentropy
Changes since 1.120: +10 -10
lines
Diff to previous 1.120 (colored)
PR/47318: Henning Petersen: Replace (r)index with str(r)chr in inetd.c And while here strncpy with strlcpy
Revision 1.120 / (download) - annotate - [select for diffs], Wed Jan 4 16:09:43 2012 UTC (12 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus
Branch point for: tls-maxphys
Changes since 1.119: +3 -3
lines
Diff to previous 1.119 (colored)
include <netipsec/ipsec.h> rather than <netinet6/ipsec.h> from userland where possible, for consistency and compatibility to FreeBSD (exception: KAME specific statistics gathering in netstat(1) and systat(1))
Revision 1.119 / (download) - annotate - [select for diffs], Wed Aug 31 13:32:37 2011 UTC (12 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.118: +4 -4
lines
Diff to previous 1.118 (colored)
Use __dead
Revision 1.118 / (download) - annotate - [select for diffs], Wed Dec 15 15:36:15 2010 UTC (13 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Changes since 1.117: +2 -20
lines
Diff to previous 1.117 (colored)
RLIMIT_NOFILE stabilized in NetBSD 17 years ago, so it's safe now to remove the #ifdef's from around code which uses it.
Revision 1.117 / (download) - annotate - [select for diffs], Wed Dec 15 13:13:28 2010 UTC (13 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.116: +2 -312
lines
Diff to previous 1.116 (colored)
Nuke conditionally compiled MULOG stuff. Itojun wanted to do it already 8 years ago when he fixed the compilation last time, and again it hasn't been buildable in years.
Revision 1.116 / (download) - annotate - [select for diffs], Thu Mar 25 16:36:00 2010 UTC (13 years, 11 months ago) by dholland
Branch: MAIN
Changes since 1.115: +8 -4
lines
Diff to previous 1.115 (colored)
Avoid SIGSEGV in forked child process for (some?) instant-disconnect clients.
Revision 1.115 / (download) - annotate - [select for diffs], Thu Oct 22 22:50:35 2009 UTC (14 years, 4 months ago) by tsarna
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.114: +2 -146
lines
Diff to previous 1.114 (colored)
Back out mDNS changes which were not discussed. There is design work that needs to be done first.
Revision 1.114 / (download) - annotate - [select for diffs], Thu Oct 22 16:34:27 2009 UTC (14 years, 4 months ago) by jkunz
Branch: MAIN
Changes since 1.113: +148 -4
lines
Diff to previous 1.113 (colored)
Add mDNS Service Directory support to inetd(8). inetd(8) can now advertize services in the mDNS-SD. (Per service configuration option in inetd.conf(5).)
Revision 1.113 / (download) - annotate - [select for diffs], Mon Jul 13 19:05:41 2009 UTC (14 years, 8 months ago) by roy
Branch: MAIN
Changes since 1.112: +5 -5
lines
Diff to previous 1.112 (colored)
Rename internal getline() function to get_line() so it does conflict with the soon to be added getline(3) libc function.
Revision 1.112 / (download) - annotate - [select for diffs], Sat May 23 03:24:51 2009 UTC (14 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.111: +3 -3
lines
Diff to previous 1.111 (colored)
print the proper client address (ryo shimizu)
Revision 1.111 / (download) - annotate - [select for diffs], Wed Apr 15 08:38:37 2009 UTC (14 years, 11 months ago) by lukem
Branch: MAIN
CVS Tags: jym-xensuspend-nbase,
jym-xensuspend-base
Changes since 1.110: +3 -3
lines
Diff to previous 1.110 (colored)
Fix -Wsign-compare issue
Revision 1.110 / (download) - annotate - [select for diffs], Thu Jan 8 21:37:20 2009 UTC (15 years, 2 months ago) by christos
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.109: +109 -93
lines
Diff to previous 1.109 (colored)
- when we close an se_fd, set it to -1 - fix int/ssize_t/size_t/socklen_t issues - fix casts - remove unused variables - fix prototypes - fix const - remove unneeded casts
Revision 1.109 / (download) - annotate - [select for diffs], Thu Jan 8 18:29:43 2009 UTC (15 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.108: +9 -6
lines
Diff to previous 1.108 (colored)
PR/40340: Ed Ravin: Print the numeric address in addition to the hostname.
Revision 1.108 / (download) - annotate - [select for diffs], Thu Jan 8 18:08:10 2009 UTC (15 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.107: +8 -7
lines
Diff to previous 1.107 (colored)
Print the numeric address of the host.
Revision 1.107 / (download) - annotate - [select for diffs], Mon Aug 4 03:55:48 2008 UTC (15 years, 7 months ago) by tls
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2
Changes since 1.106: +41 -4
lines
Diff to previous 1.106 (colored)
Add accept filters, ported from FreeBSD by Coyote Point Systems. Add inetd support for specifying an accept filter for a service (mostly as a usage example, but it can be handy for other things). Manual pages to follow in a day or so. OK core@.
Revision 1.106 / (download) - annotate - [select for diffs], Mon Jul 21 13:36:58 2008 UTC (15 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.105: +4 -4
lines
Diff to previous 1.105 (colored)
Remove the \n and tabs from the __COPYRIGHT() strings. Tweak to use a consistent format.
Revision 1.105 / (download) - annotate - [select for diffs], Mon May 26 03:41:25 2008 UTC (15 years, 9 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pf42-base4,
yamt-pf42-base3,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base
Changes since 1.104: +12 -6
lines
Diff to previous 1.104 (colored)
When running a builtin service (a what? yeah, a piece of useless legacy code), if the builtin service forks (not all do), avoid leaking listening sockets into the child process. If the child process were to keep copies of the listening sockets around and then hang about for a long time, it would prevent inetd from being able to re-bind them upon restart. The listening sockets are tagged close-on-exec, but that doesn't help when one doesn't exec. Patch from my own very old PR 8253.
Revision 1.104 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:16 2008 UTC (15 years, 10 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base2,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.103: +2 -9
lines
Diff to previous 1.103 (colored)
Remove clause 3 and 4 from TNF licenses
Revision 1.103 / (download) - annotate - [select for diffs], Tue Jan 16 17:32:05 2007 UTC (17 years, 2 months ago) by hubertf
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base,
matt-mips64-base,
matt-mips64,
matt-armv6-prevmlocking,
matt-armv6-nbase,
matt-armv6-base,
matt-armv6,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-base,
hpcarm-cleanup,
cube-autoconf-base,
cube-autoconf
Branch point for: yamt-pf42
Changes since 1.102: +2 -3
lines
Diff to previous 1.102 (colored)
* Don't include headers twice * Remove a few trailing whitespaces * Rearrange and join to one #if for some headers Patch contributed by Slava Semushin <slava.semushin@gmail.com> in private mail.
Revision 1.102 / (download) - annotate - [select for diffs], Tue Jan 2 16:00:46 2007 UTC (17 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.101: +10 -9
lines
Diff to previous 1.101 (colored)
Fixed gcc warnings about comparison between signed and unsigned, as well as one case where a variable had been used for two different purposes (which also required different types).
Revision 1.101 / (download) - annotate - [select for diffs], Thu May 11 06:59:40 2006 UTC (17 years, 10 months ago) by mrg
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Changes since 1.100: +4 -4
lines
Diff to previous 1.100 (colored)
- use socklen_t where appropriate - avoid lvalue casts
Revision 1.100 / (download) - annotate - [select for diffs], Sat Apr 9 20:14:55 2005 UTC (18 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.99: +4 -3
lines
Diff to previous 1.99 (colored)
Don't ignore SIGCHLD, because we are not going to get kqueue notifications about it if we do.
Revision 1.99 / (download) - annotate - [select for diffs], Sun Nov 28 05:40:47 2004 UTC (19 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3
Changes since 1.98: +8 -9
lines
Diff to previous 1.98 (colored)
Simplify code a bit, and whitespace.
Revision 1.98 / (download) - annotate - [select for diffs], Fri Oct 29 21:27:34 2004 UTC (19 years, 4 months ago) by dsl
Branch: MAIN
Changes since 1.97: +4 -4
lines
Diff to previous 1.97 (colored)
Add (unsigned char) cast to ctype functions
Revision 1.97 / (download) - annotate - [select for diffs], Wed Oct 20 11:37:42 2004 UTC (19 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.96: +8 -3
lines
Diff to previous 1.96 (colored)
Add two missing `#ifdef INET6's.
Revision 1.96 / (download) - annotate - [select for diffs], Tue Sep 14 17:42:31 2004 UTC (19 years, 6 months ago) by rumble
Branch: MAIN
Changes since 1.95: +11 -7
lines
Diff to previous 1.95 (colored)
Change the log that is produced when the maximum spawn count per last 60 second interval is reached to more accurately reflect what has happened. Also, break up a few long strings, obey 80 columns, and remove a superfluous newline passed to syslog(3).
Revision 1.95 / (download) - annotate - [select for diffs], Sun Jan 25 10:00:17 2004 UTC (20 years, 1 month ago) by cube
Branch: MAIN
CVS Tags: netbsd-2-base,
netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1,
netbsd-2-0-base,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2-0,
netbsd-2
Changes since 1.94: +18 -4
lines
Diff to previous 1.94 (colored)
Allow quoting using single or double quotes inside inetd.conf. Closes PR 24192 by Tyler Retzlaff.
Revision 1.94 / (download) - annotate - [select for diffs], Tue Oct 21 02:43:37 2003 UTC (20 years, 5 months ago) by fvdl
Branch: MAIN
Changes since 1.93: +3 -3
lines
Diff to previous 1.93 (colored)
Don't assign NULL to an integer.
Revision 1.93 / (download) - annotate - [select for diffs], Thu Aug 7 11:25:21 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.92: +3 -7
lines
Diff to previous 1.92 (colored)
Move UCB-licensed code from 4-clause to 3-clause licence. Patches provided by Joel Baker in PR 22366, verified by myself.
Revision 1.92 / (download) - annotate - [select for diffs], Sun Jul 13 13:54:02 2003 UTC (20 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.91: +6 -6
lines
Diff to previous 1.91 (colored)
use strlcpy
Revision 1.91 / (download) - annotate - [select for diffs], Tue Apr 22 07:46:46 2003 UTC (20 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.90: +4 -4
lines
Diff to previous 1.90 (colored)
"user:group=foo.bar" is weird. use colon on both sides
Revision 1.90 / (download) - annotate - [select for diffs], Tue Apr 22 07:45:27 2003 UTC (20 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.89: +12 -6
lines
Diff to previous 1.89 (colored)
always configure IPV6_FAITH explicitly to avoid misconfiguring it on SIGHUP. sync w/kame
Revision 1.89 / (download) - annotate - [select for diffs], Sun Feb 16 18:16:26 2003 UTC (21 years, 1 month ago) by tron
Branch: MAIN
Changes since 1.88: +2 -16
lines
Diff to previous 1.88 (colored)
Because signals are delivered synchronously via kqueue(2) there is no reason to block and release them at various places.
Revision 1.88 / (download) - annotate - [select for diffs], Sun Feb 16 17:57:34 2003 UTC (21 years, 1 month ago) by tron
Branch: MAIN
Changes since 1.87: +22 -32
lines
Diff to previous 1.87 (colored)
Now that signal handling is done via kqueue(2) we need to enter the event loop even if no sockets were created. This should fix PR bin/20369 by Martin Husemann.
Revision 1.87 / (download) - annotate - [select for diffs], Thu Feb 13 11:47:27 2003 UTC (21 years, 1 month ago) by tron
Branch: MAIN
Changes since 1.86: +206 -226
lines
Diff to previous 1.86 (colored)
Improve kqueue(2) utilization: - Don't invoke kevent(2) for every single event change. Instead collect event changes and try to do them in the event loop. - Handle signals via kevent(2) to avoid race conditions for SIGHUP (which probably exist in the select(2) based implementation, too).
Revision 1.86 / (download) - annotate - [select for diffs], Wed Feb 12 10:03:47 2003 UTC (21 years, 1 month ago) by tron
Branch: MAIN
Changes since 1.85: +46 -46
lines
Diff to previous 1.85 (colored)
KNF.
Revision 1.85 / (download) - annotate - [select for diffs], Wed Feb 12 08:52:03 2003 UTC (21 years, 1 month ago) by tron
Branch: MAIN
Changes since 1.84: +123 -96
lines
Diff to previous 1.84 (colored)
Rewrite inetd(8) to use kqueue(2) for enhanced performance and scalability.
Revision 1.84 / (download) - annotate - [select for diffs], Thu Sep 19 21:59:03 2002 UTC (21 years, 6 months ago) by mycroft
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.83: +8 -4
lines
Diff to previous 1.83 (colored)
If we can't set FD_CLOEXEC on a listening socket, close it rather than allowing it to be passed down to inetd's children. Note: Setting FD_CLOEXEC can't actually fail, but we did check for the error anyway...
Revision 1.83 / (download) - annotate - [select for diffs], Thu Jul 4 12:35:19 2002 UTC (21 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.82: +3 -3
lines
Diff to previous 1.82 (colored)
correct udp-from-broadcast check. From: andre@ae-35.com
Revision 1.82 / (download) - annotate - [select for diffs], Wed Jun 5 10:03:31 2002 UTC (21 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.81: +35 -6
lines
Diff to previous 1.81 (colored)
on internal udp echoback service, reject request if source address is a broadcast address.
Revision 1.81 / (download) - annotate - [select for diffs], Sat Jun 1 03:41:33 2002 UTC (21 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.80: +2 -13
lines
Diff to previous 1.80 (colored)
no need for inetd_dummy variable. from openbsd
Revision 1.80 / (download) - annotate - [select for diffs], Sat Jun 1 00:32:41 2002 UTC (21 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.79: +6 -13
lines
Diff to previous 1.79 (colored)
minor KNF
Revision 1.79 / (download) - annotate - [select for diffs], Sat Jun 1 00:28:52 2002 UTC (21 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.78: +113 -98
lines
Diff to previous 1.78 (colored)
cleanup main() by splitting it up in two. inspired by openbsd change
Revision 1.78 / (download) - annotate - [select for diffs], Sat Jun 1 00:15:08 2002 UTC (21 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.77: +30 -22
lines
Diff to previous 1.77 (colored)
socklen_t cleanup. make MULOG code actually compile (is there anyone using it? otherwise, i'd like to nuke it)
Revision 1.77 / (download) - annotate - [select for diffs], Fri May 31 14:28:20 2002 UTC (21 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.76: +12 -27
lines
Diff to previous 1.76 (colored)
use setproctitle(3); from itojun.
Revision 1.76 / (download) - annotate - [select for diffs], Mon Jan 21 14:42:28 2002 UTC (22 years, 2 months ago) by wiz
Branch: MAIN
CVS Tags: netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001,
netbsd-1-6
Changes since 1.75: +3 -3
lines
Diff to previous 1.75 (colored)
deamon -> daemon
Revision 1.75 / (download) - annotate - [select for diffs], Wed Dec 26 17:01:39 2001 UTC (22 years, 2 months ago) by abs
Branch: MAIN
Changes since 1.74: +9 -9
lines
Diff to previous 1.74 (colored)
Convert some 'long's to 'uint32_t's. Now rdate works against an LP64 box.
Revision 1.74 / (download) - annotate - [select for diffs], Fri Apr 6 11:13:47 2001 UTC (22 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.73: +6 -6
lines
Diff to previous 1.73 (colored)
Negative exit code cleanup: Replace exit(-x) with exit(x). As seen on tech-userlevel.
Revision 1.73 / (download) - annotate - [select for diffs], Mon Feb 19 23:22:43 2001 UTC (23 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.72: +4 -5
lines
Diff to previous 1.72 (colored)
convert to use getprogname()
Revision 1.72 / (download) - annotate - [select for diffs], Thu Jan 11 01:36:40 2001 UTC (23 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.71: +3 -3
lines
Diff to previous 1.71 (colored)
use explicit name rather than __progname in openlog
Revision 1.71 / (download) - annotate - [select for diffs], Tue Aug 1 18:42:08 2000 UTC (23 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.70: +37 -18
lines
Diff to previous 1.70 (colored)
be more paranoid about UDP-based echo services validation. namely, reject the following sources: 0.0.0.0/8 127.0.0.0/8 240.0.0.0/4 255.0.0.0/8 ff00::/8 ::/128 ::ffff:0.0.0.0/96 and ::0.0.0.0/96 obeys IPv4 rule. hint from deraadt.
Revision 1.70 / (download) - annotate - [select for diffs], Sun Jul 23 22:54:51 2000 UTC (23 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.69: +3 -3
lines
Diff to previous 1.69 (colored)
Remove bogus typeof hack, and just use the type directly.
Revision 1.69 / (download) - annotate - [select for diffs], Sat Jul 8 01:55:24 2000 UTC (23 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.68: +7 -3
lines
Diff to previous 1.68 (colored)
permit square-bracket notation (as in RFC2732) for the first element in inetd.conf. otherwise, we'll have (minor) problem putting IPv6 address in. sync with kame. [::1]:ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -ll
Revision 1.68 / (download) - annotate - [select for diffs], Fri Jul 7 14:56:45 2000 UTC (23 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.67: +17 -9
lines
Diff to previous 1.67 (colored)
explicitly check if the address family is supported, by using socket(2).
Revision 1.67 / (download) - annotate - [select for diffs], Wed Jul 5 12:43:06 2000 UTC (23 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.66: +3 -3
lines
Diff to previous 1.66 (colored)
more change on getaddrinfo error handling. XXX enami, I admit it is not a good thing to check the error code from getaddrinfo. it is sometimes mandatory, however. gai_strerror message can be too generic in some cases. we can't really extend getaddrinfo, as it was not invented by kame (see RFC2553)
Revision 1.66 / (download) - annotate - [select for diffs], Tue Jul 4 13:25:39 2000 UTC (23 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.65: +19 -7
lines
Diff to previous 1.65 (colored)
add faithd(8) support. with "faith/tcp6" protocol specification, it will open a socket with setsockopt(IPV6_FAITH).
Revision 1.65 / (download) - annotate - [select for diffs], Tue Jul 4 09:33:55 2000 UTC (23 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.64: +10 -6
lines
Diff to previous 1.64 (colored)
emit more friendly message on nonexistent service name. From: enami
Revision 1.64 / (download) - annotate - [select for diffs], Mon Jul 3 23:40:59 2000 UTC (23 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.63: +3 -3
lines
Diff to previous 1.63 (colored)
check for mux service by ISMUX(), not by != NORM_TYPE (the assumption can bite us if we extend se_type to have more cases).
Revision 1.63 / (download) - annotate - [select for diffs], Mon Jul 3 23:37:17 2000 UTC (23 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.62: +2 -13
lines
Diff to previous 1.62 (colored)
remove duplicated ipsec setup code. we always call setup() on socket reinitialization (like SIGHUP). sync with kame.
Revision 1.62 / (download) - annotate - [select for diffs], Fri Jun 2 23:17:55 2000 UTC (23 years, 9 months ago) by fvdl
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.61: +31 -37
lines
Diff to previous 1.61 (colored)
Modify to support RPC over IPv6.
Revision 1.61 / (download) - annotate - [select for diffs], Sat May 13 06:42:13 2000 UTC (23 years, 10 months ago) by itojun
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.60: +3 -3
lines
Diff to previous 1.60 (colored)
use LOG_WARNING for syslog output for address family mismatch. suggested by: thorpej
Revision 1.60 / (download) - annotate - [select for diffs], Sat May 13 02:56:47 2000 UTC (23 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.59: +14 -5
lines
Diff to previous 1.59 (colored)
correct extremely unfriendly error message when the kernel does not support the address family (like including "tcp6" in inetd.conf, on non-IPv6 kernel). was: inetd[185]: ftp/tcp6: *: hostname nor servname provided, or not known now: inetd[315]: ftp/tcp6: *: the address family is not supported by the kernel
Revision 1.59 / (download) - annotate - [select for diffs], Mon Mar 6 19:52:13 2000 UTC (24 years ago) by itojun
Branch: MAIN
Changes since 1.58: +12 -6
lines
Diff to previous 1.58 (colored)
fix IPsec policy parser. #@ should affect multiple lines as documented.
Revision 1.58 / (download) - annotate - [select for diffs], Mon Jan 31 14:28:18 2000 UTC (24 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.57: +44 -65
lines
Diff to previous 1.57 (colored)
sync with latest libipsec. since outgoing and incoming policy is separated, inetd can take multiple policy specification, separated by ";".
Revision 1.57 / (download) - annotate - [select for diffs], Thu Jan 27 19:52:43 2000 UTC (24 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.56: +18 -10
lines
Diff to previous 1.56 (colored)
make error check against getnameinfo().
Revision 1.56 / (download) - annotate - [select for diffs], Thu Jan 13 15:53:00 2000 UTC (24 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.55: +3 -2
lines
Diff to previous 1.55 (colored)
call sigsetmask() on ipsec initialization failure.
Revision 1.55 / (download) - annotate - [select for diffs], Wed Oct 6 21:54:10 1999 UTC (24 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
comdex-fall-1999-base,
comdex-fall-1999
Changes since 1.54: +16 -12
lines
Diff to previous 1.54 (colored)
A colon is the preferred way to split a user and group name pair; make this possible and depreciate the use of dot.
Revision 1.54 / (download) - annotate - [select for diffs], Wed Sep 15 09:59:41 1999 UTC (24 years, 6 months ago) by itojun
Branch: MAIN
Branch point for: wrstuden-devbsize
Changes since 1.53: +54 -33
lines
Diff to previous 1.53 (colored)
fix internal servers (like echo) so that they can accept AF_INET6 connections. add AF_INET6 support for port_good_dg().
Revision 1.53 / (download) - annotate - [select for diffs], Mon Aug 2 01:12:21 1999 UTC (24 years, 7 months ago) by sommerfeld
Branch: MAIN
Changes since 1.52: +8 -3
lines
Diff to previous 1.52 (colored)
Fix PR7739: correct -DRPC rot in inetd.c
Revision 1.52 / (download) - annotate - [select for diffs], Wed Jul 28 10:58:31 1999 UTC (24 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.51: +8 -8
lines
Diff to previous 1.51 (colored)
query service name properly on libwrap warnings. NetBSD PR: 8101
Revision 1.51 / (download) - annotate - [select for diffs], Mon Jul 19 15:49:39 1999 UTC (24 years, 8 months ago) by ghudson
Branch: MAIN
Changes since 1.50: +3 -3
lines
Diff to previous 1.50 (colored)
se_wait stores pids; make it a pid_t.
Revision 1.50 / (download) - annotate - [select for diffs], Sun Jul 4 00:31:57 1999 UTC (24 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.49: +36 -15
lines
Diff to previous 1.49 (colored)
be more friendly with non-IPsec kernel (hide warnings).
Revision 1.49 / (download) - annotate - [select for diffs], Fri Jul 2 04:48:19 1999 UTC (24 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.48: +273 -103
lines
Diff to previous 1.48 (colored)
dual-stack inetd. you can write "tcp6" or "tcp4" into "protocol" field. (the style is the rough consensus among v6 implementers so it will be the standard style) TODO: test rpc and tcpmux on IPv6. TODO: test identd over IPv6.
Revision 1.48 / (download) - annotate - [select for diffs], Sun Jun 6 01:53:45 1999 UTC (24 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.47: +4 -16
lines
Diff to previous 1.47 (colored)
Use pidfile(3).
Revision 1.47 / (download) - annotate - [select for diffs], Sun Apr 11 15:40:58 1999 UTC (24 years, 11 months ago) by hwr
Branch: MAIN
Changes since 1.46: +51 -3
lines
Diff to previous 1.46 (colored)
Prevent sending udp data to the obvious bad ports that are used for DoS attacks (e.g. looping packets between two echo ports). This should "fix" PR bin/2455. Could please anyone with an appropriate "hacker tools" check this?
Revision 1.46 / (download) - annotate - [select for diffs], Wed Jan 20 09:24:06 1999 UTC (25 years, 2 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001,
netbsd-1-4
Changes since 1.45: +1 -6
lines
Diff to previous 1.45 (colored)
Revert previous.
Revision 1.45 / (download) - annotate - [select for diffs], Wed Jan 20 04:42:17 1999 UTC (25 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.44: +8 -3
lines
Diff to previous 1.44 (colored)
Make all listening sockets non-blocking.
Revision 1.44 / (download) - annotate - [select for diffs], Sat Jul 18 05:04:39 1998 UTC (25 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.43: +8 -8
lines
Diff to previous 1.43 (colored)
use AF_LOCAL instead of AF_UNIX
Revision 1.43 / (download) - annotate - [select for diffs], Thu Jul 16 08:55:43 1998 UTC (25 years, 8 months ago) by tron
Branch: MAIN
Changes since 1.42: +4 -2
lines
Diff to previous 1.42 (colored)
From "buqtraq": avoid file descriptor leak if service is looping.
Revision 1.42 / (download) - annotate - [select for diffs], Fri May 1 01:57:26 1998 UTC (25 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.41: +151 -4
lines
Diff to previous 1.41 (colored)
Add support for specifying the send and receive socket buffer sizes. This is especially useful for TCP servers which must specify the receive socket buffer size before the connection is made so that the connection's window scale factor can be properly advertised. Example /etc/inetd.conf configuration line: shell stream tcp,rcvbuf=1m nowait root /usr/libexec/rshd rshd That line will cause the rshd to advertise a 1 megabyte window, which could improve the performance of an rcp in some situations.
Revision 1.41 / (download) - annotate - [select for diffs], Sat Mar 21 06:25:37 1998 UTC (26 years ago) by mycroft
Branch: MAIN
Changes since 1.40: +10 -4
lines
Diff to previous 1.40 (colored)
Reset the SIGPIPE handler to SIG_DFL after forking.
Revision 1.40 / (download) - annotate - [select for diffs], Tue Jan 20 16:44:22 1998 UTC (26 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.39: +4 -3
lines
Diff to previous 1.39 (colored)
PR/4837: Jeff Thieleke: inetd does not compile without libwrap.
Revision 1.39 / (download) - annotate - [select for diffs], Thu Dec 4 06:39:02 1997 UTC (26 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.38: +4 -2
lines
Diff to previous 1.38 (colored)
Ignore SIGPIPE, which may be caused by non-forking internal TCP services if the remote side closes the connection before we answer.
Revision 1.38 / (download) - annotate - [select for diffs], Fri Oct 17 13:53:30 1997 UTC (26 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-3-base,
netbsd-1-3-BETA
Branch point for: netbsd-1-3
Changes since 1.37: +10 -6
lines
Diff to previous 1.37 (colored)
fix use of unix domain socketname length, and signal error if this is exceeded. from enami tsugutomo <enami@ba2.so-net.or.jp> [bin/3369]
Revision 1.37 / (download) - annotate - [select for diffs], Wed Oct 8 07:15:59 1997 UTC (26 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.36: +5 -4
lines
Diff to previous 1.36 (colored)
Don't sleep if we get EINTR from select(2) (e.g. because we got a SIGCHLD when something died). From PR 4056, by David Holland.
Revision 1.36 / (download) - annotate - [select for diffs], Sun Oct 5 16:40:25 1997 UTC (26 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.35: +39 -28
lines
Diff to previous 1.35 (colored)
WARNS?=1
Revision 1.35 / (download) - annotate - [select for diffs], Sun Oct 5 16:16:13 1997 UTC (26 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.34: +3 -3
lines
Diff to previous 1.34 (colored)
merge lite2 [actually, just update ucb sccs id's]
Revision 1.34 / (download) - annotate - [select for diffs], Sun Apr 20 22:04:59 1997 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.33: +3 -3
lines
Diff to previous 1.33 (colored)
Don't do libwrap checking for UDP services; they must do it internally on every packet to be correct.
Revision 1.33 / (download) - annotate - [select for diffs], Wed Mar 19 00:05:05 1997 UTC (27 years ago) by mycroft
Branch: MAIN
Changes since 1.32: +3 -3
lines
Diff to previous 1.32 (colored)
Don't attempt to use libwrap for `stream wait' services, where we only have the listening socket.
Revision 1.32 / (download) - annotate - [select for diffs], Tue Mar 18 04:47:22 1997 UTC (27 years ago) by mycroft
Branch: MAIN
Changes since 1.31: +4 -4
lines
Diff to previous 1.31 (colored)
Oops; for waiting stream services, we don't do an accept(); we pass down the fd of the listening socket.
Revision 1.31 / (download) - annotate - [select for diffs], Fri Mar 14 03:18:25 1997 UTC (27 years ago) by mycroft
Branch: MAIN
Changes since 1.30: +4 -2
lines
Diff to previous 1.30 (colored)
Output a + line for the tcpmux `help' service, and list itself.
Revision 1.30 / (download) - annotate - [select for diffs], Thu Mar 13 20:15:04 1997 UTC (27 years ago) by mycroft
Branch: MAIN
Changes since 1.29: +138 -141
lines
Diff to previous 1.29 (colored)
Move all of the libwrap checking and subprocess startup into a separate function. Arrange for tcpmux() to be called like other builtins, and have it call the aforementioned function recursively. This allows tcpmux to be wrapped, and always runs it after forking, so we don't freeze everything else. Also, use FD_CLOEXEC to close file descriptors, rather than iterating through them ourself.
Revision 1.29 / (download) - annotate - [select for diffs], Thu Mar 13 18:39:50 1997 UTC (27 years ago) by mycroft
Branch: MAIN
Changes since 1.28: +3 -3
lines
Diff to previous 1.28 (colored)
Fix typo.
Revision 1.28 / (download) - annotate - [select for diffs], Thu Mar 13 18:36:37 1997 UTC (27 years ago) by mycroft
Branch: MAIN
Changes since 1.27: +8 -3
lines
Diff to previous 1.27 (colored)
Make the previous dependent on LIBWRAP_INTERNAL, which is not defined by default.
Revision 1.27 / (download) - annotate - [select for diffs], Thu Mar 13 18:19:35 1997 UTC (27 years ago) by mycroft
Branch: MAIN
Changes since 1.26: +6 -7
lines
Diff to previous 1.26 (colored)
If we forked for an internal service, make sure we always exit afterward.
Revision 1.26 / (download) - annotate - [select for diffs], Thu Mar 13 18:08:19 1997 UTC (27 years ago) by mycroft
Branch: MAIN
Changes since 1.25: +6 -2
lines
Diff to previous 1.25 (colored)
If we're using libwrap. always fork. This only affects the time and daytime services anyway.
Revision 1.25 / (download) - annotate - [select for diffs], Thu Mar 13 18:06:15 1997 UTC (27 years ago) by mycroft
Branch: MAIN
Changes since 1.24: +17 -17
lines
Diff to previous 1.24 (colored)
Slight rearrangement to forking code. Also, always close the new descriptor after a fork failure, even for a waiting service.
Revision 1.24 / (download) - annotate - [select for diffs], Thu Mar 13 17:35:39 1997 UTC (27 years ago) by mycroft
Branch: MAIN
Changes since 1.23: +4 -3
lines
Diff to previous 1.23 (colored)
Another bug fix to tcpmux.
Revision 1.23 / (download) - annotate - [select for diffs], Thu Mar 13 17:22:23 1997 UTC (27 years ago) by mycroft
Branch: MAIN
Changes since 1.22: +488 -200
lines
Diff to previous 1.22 (colored)
Merge changes from Lite2 (with bug fixes). Adds tcpmux.
Revision 1.22 / (download) - annotate - [select for diffs], Thu Mar 13 14:57:34 1997 UTC (27 years ago) by mycroft
Branch: MAIN
Changes since 1.21: +17 -19
lines
Diff to previous 1.21 (colored)
When rejecting a UDP connection, make sure to flush the right socket.
Revision 1.21 / (download) - annotate - [select for diffs], Thu Mar 13 14:29:15 1997 UTC (27 years ago) by mycroft
Branch: MAIN
Changes since 1.20: +5 -5
lines
Diff to previous 1.20 (colored)
Oops; subprocess must exit when rejecting connection.
Revision 1.20 / (download) - annotate - [select for diffs], Thu Mar 13 14:15:40 1997 UTC (27 years ago) by mycroft
Branch: MAIN
Changes since 1.19: +34 -33
lines
Diff to previous 1.19 (colored)
Do libwrap access checking *after* forking.
Revision 1.19 / (download) - annotate - [select for diffs], Tue Mar 4 06:12:44 1997 UTC (27 years ago) by mikel
Branch: MAIN
Changes since 1.18: +6 -4
lines
Diff to previous 1.18 (colored)
set proper length for sockaddr_un. fixes PR bin/3281 from Enami Tsugutomo, but slightly differently; the code I added is basically identical to SUN_LEN(), but avoids the unecessary strlen() call.
Revision 1.18 / (download) - annotate - [select for diffs], Sun Jan 12 06:55:43 1997 UTC (27 years, 2 months ago) by mikel
Branch: MAIN
Changes since 1.17: +3 -3
lines
Diff to previous 1.17 (colored)
fix problem with restarting service after SIGHUP (PR 3093) indicate proper invocation point and RCS ID police (PR 3098)
Revision 1.17 / (download) - annotate - [select for diffs], Thu Jan 2 14:25:18 1997 UTC (27 years, 2 months ago) by mouse
Branch: MAIN
Changes since 1.16: +4 -4
lines
Diff to previous 1.16 (colored)
Per mail from Herb Peyerl, use LOG_AUTH for libwrap logging.
Revision 1.16 / (download) - annotate - [select for diffs], Mon Dec 30 23:38:19 1996 UTC (27 years, 2 months ago) by mouse
Branch: MAIN
Changes since 1.15: +99 -21
lines
Diff to previous 1.15 (colored)
Get the local-address-part code in here (instead of "comsat" you can use "127.0.0.1:comsat"). While I'm here, do trailing whitespace cleanup, .Nm usage police in the manpage, and a couple of trivial text typo fixes.
Revision 1.15 / (download) - annotate - [select for diffs], Sat Dec 7 00:37:00 1996 UTC (27 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.14: +4 -3
lines
Diff to previous 1.14 (colored)
if se_argv[0] is NULL, use se_service.
Revision 1.14 / (download) - annotate - [select for diffs], Fri Dec 6 00:45:48 1996 UTC (27 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.13: +4 -4
lines
Diff to previous 1.13 (colored)
syslog allow/deny at the right severity.
Revision 1.13 / (download) - annotate - [select for diffs], Wed Dec 4 13:37:18 1996 UTC (27 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.12: +23 -10
lines
Diff to previous 1.12 (colored)
allow allow/deny severity to be compile-time configurable, use getservbyport() correctly, and log the proto. from <jbernard@tater.Mines.EDU> in several PR's.
Revision 1.12 / (download) - annotate - [select for diffs], Tue Nov 26 17:23:37 1996 UTC (27 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.11: +69 -11
lines
Diff to previous 1.11 (colored)
use the new libwrap functionality to provide tcpd-like functionality as part of inetd. uses /etc/hosts.{allow,deny} as tcpd does, etc. it is basically exactly like tcpd except that you don't need to change the server to /usr/local/sbin/tcpd. XXX should document better somewhere
Revision 1.11 / (download) - annotate - [select for diffs], Thu Feb 22 11:14:41 1996 UTC (28 years, 1 month ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-2-base,
netbsd-1-2-RELEASE,
netbsd-1-2-PATCH001,
netbsd-1-2-BETA,
netbsd-1-2
Changes since 1.10: +6 -10
lines
Diff to previous 1.10 (colored)
Always swap most of the fields when updating a config file entry; otherwise we can get weird lossage when deleting a field (e.g. the group).
Revision 1.10 / (download) - annotate - [select for diffs], Fri Jun 2 15:02:18 1995 UTC (28 years, 9 months ago) by pk
Branch: MAIN
CVS Tags: netbsd-1-1-base,
netbsd-1-1-RELEASE,
netbsd-1-1-PATCH001,
netbsd-1-1
Changes since 1.9: +2 -3
lines
Diff to previous 1.9 (colored)
Remove local declarations of ctime().
Revision 1.9 / (download) - annotate - [select for diffs], Fri Dec 23 16:45:11 1994 UTC (29 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.8: +10 -9
lines
Diff to previous 1.8 (colored)
includes, for necessary prototypes, and avoid name collisions with the include.
Revision 1.8 / (download) - annotate - [select for diffs], Wed May 25 02:49:38 1994 UTC (29 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base,
netbsd-1-0-RELEASE,
netbsd-1-0-PATCH1,
netbsd-1-0-PATCH06,
netbsd-1-0-PATCH05,
netbsd-1-0-PATCH04,
netbsd-1-0-PATCH03,
netbsd-1-0-PATCH02,
netbsd-1-0-PATCH0,
netbsd-1-0
Changes since 1.7: +1 -10
lines
Diff to previous 1.7 (colored)
kill stupidity
Revision 1.7 / (download) - annotate - [select for diffs], Tue May 17 20:47:29 1994 UTC (29 years, 10 months ago) by pk
Branch: MAIN
Changes since 1.6: +2 -2
lines
Diff to previous 1.6 (colored)
Keep up with changed rlimit structure.
Revision 1.6 / (download) - annotate - [select for diffs], Tue Dec 14 21:31:53 1993 UTC (30 years, 3 months ago) by pk
Branch: MAIN
Changes since 1.5: +13 -11
lines
Diff to previous 1.5 (colored)
RLIMIT_OFILE => RLIMIT_NOFILE Do something sensible when current RLIMIT_NOFILE turns out to be infinity.
Revision 1.5 / (download) - annotate - [select for diffs], Wed Oct 13 11:22:50 1993 UTC (30 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.4: +763 -239
lines
Diff to previous 1.4 (colored)
Allow for a group name to be specified in the ``user'' field: user[.group] Allow for max # of invocations to be specified; appended to ``wait'' field: wait/nowait[.max] Allow for RPC specifications in numeric format. Inetd now stores its pid in `/var/run/inetd.pid'. Support for AF_UNIX family.
Revision 1.4 / (download) - annotate - [select for diffs], Mon Oct 11 20:53:48 1993 UTC (30 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +5 -2
lines
Diff to previous 1.3 (colored)
Don't core dump on blank lines.
Revision 1.3 / (download) - annotate - [select for diffs], Sun Aug 1 17:59:33 1993 UTC (30 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.2: +2 -1
lines
Diff to previous 1.2 (colored)
Add RCS identifiers.
Revision 1.2 / (download) - annotate - [select for diffs], Fri Jun 11 00:36:35 1993 UTC (30 years, 9 months ago) by brezak
Branch: MAIN
CVS Tags: netbsd-0-9-base,
netbsd-0-9-RELEASE,
netbsd-0-9-BETA,
netbsd-0-9-ALPHA2,
netbsd-0-9-ALPHA,
netbsd-0-9
Changes since 1.1: +146 -24
lines
Diff to previous 1.1 (colored)
Add support for starting RPC servers.
Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: MAIN
Initial revision