| Author |
Message |
Hajimu UMEMOTO *nix forums beginner
Joined: 16 Jun 2002
Posts: 46
|
|
| Back to top |
|
 |
Makoto Matsushita *nix forums beginner
Joined: 21 Mar 2002
Posts: 9
|
Posted: Sun Jun 16, 2002 12:35 pm Post subject:
Re: [CFR] max-child-per-ip restriction for inetd
|
|
|
ume> I wish to add max-child-per-ip option to inetd. This enables us to
ume> restrict maximum number of simultaneous invocations of each service
ume> from a single IP address.
FYI: This patch is already tested at snapshots.jp.FreeBSD.org, and it
seems fine to me. Thank you, ume-san!
-- -
Makoto `MAR' Matsushita
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message |
|
| Back to top |
|
 |
Hajimu UMEMOTO *nix forums beginner
Joined: 16 Jun 2002
Posts: 46
|
Posted: Sun Jun 16, 2002 3:49 pm Post subject:
Re: [CFR] max-child-per-ip restriction for inetd
|
|
|
Hi,
| Quote: | On Sun, 16 Jun 2002 19:36:28 +0200 (SAT)
John Hay <jhay@icomtek.csir.co.za> said:
|
jhay> Both the patches needs a colon ( after the s on the getopt() line,
jhay> otherwise you just get a nasty coredump if you try to use the "-s num"
jhay> commandline option.
Oops, thanks. I just fix it and re-put it.
--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message |
|
| Back to top |
|
 |
John Hay *nix forums beginner
Joined: 17 Apr 2002
Posts: 8
|
Posted: Sun Jun 16, 2002 5:36 pm Post subject:
Re: [CFR] max-child-per-ip restriction for inetd
|
|
|
Both the patches needs a colon ( after the s on the getopt() line,
otherwise you just get a nasty coredump if you try to use the "-s num"
commandline option.
John
--
John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message |
|
| Back to top |
|
 |
Terry Lambert *nix forums Guru
Joined: 19 Mar 2002
Posts: 434
|
Posted: Sun Jun 16, 2002 8:51 pm Post subject:
Re: [CFR] max-child-per-ip restriction for inetd
|
|
|
Hajimu UMEMOTO wrote:
Your search_ip() function is a linear list traversal, which
makes a lookup O(N).
Is there any change you could use a hash or a btree or a
skiplist or a trie or some other data structure *other*
than a linear list traversal?
It seems to me that this will make things incredibly slow
for everyone, if you have one IP address that's abusive
enough that it approaches the limit you set.
-- Terry
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message |
|
| Back to top |
|
 |
Hajimu UMEMOTO *nix forums beginner
Joined: 16 Jun 2002
Posts: 46
|
Posted: Mon Jun 17, 2002 2:20 pm Post subject:
Re: [CFR] max-child-per-ip restriction for inetd
|
|
|
Hi,
| Quote: | On Sun, 16 Jun 2002 15:51:31 -0700
Terry Lambert <tlambert2@mindspring.com> said:
|
tlambert2> Your search_ip() function is a linear list traversal, which
tlambert2> makes a lookup O(N).
Oh, yes. I'm thinking that at begining.
tlambert2> Is there any change you could use a hash or a btree or a
tlambert2> skiplist or a trie or some other data structure *other*
tlambert2> than a linear list traversal?
Yes, I have a plan to reimplement it to use maybe btree or something.
Sincerely,
--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|