Don't try to apply connection-per-ip rate limiting to unix domain

sockets.  Instead of rejecting all unix domain connections when the
-C flag is given, allow them instead. Aragon tested an earlier
version of the patch.

PR:		109315
MFC after:	2 weeks
Tested-by:	Aragon Gouveia <aragon@phat.za.net>
This commit is contained in:
David Malone 2007-03-11 16:30:49 +00:00
parent c0dc2ab241
commit 7149ee1696
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167455

View File

@ -2222,6 +2222,7 @@ cpmip(const struct servtab *sep, int ctrl)
*/
if (sep->se_maxcpm > 0 &&
(sep->se_family == AF_INET || sep->se_family == AF_INET6) &&
getpeername(ctrl, (struct sockaddr *)&rss, &rssLen) == 0 ) {
time_t t = time(NULL);
int hv = 0xABC3D20F;