From owner-freebsd-questions Wed Jan 10 7:39:25 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.imp.ch (mail.imp.ch [157.161.1.2]) by hub.freebsd.org (Postfix) with ESMTP id 2A0CF37B402 for ; Wed, 10 Jan 2001 07:39:06 -0800 (PST) Received: from levais.imp.ch (levais.imp.ch [157.161.4.66]) by mail.imp.ch (8.11.1/8.11.1) with ESMTP id f0AFd5445308 for ; Wed, 10 Jan 2001 16:39:05 +0100 (CET) (envelope-from Martin.Blapp@imp.ch) Date: Wed, 10 Jan 2001 16:44:59 +0100 (CET) From: Martin Blapp To: freebsd-questions@freebsd.org Subject: RE: HELP: ypbind flooding network (PATCH) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Add my patch which fix your problem. It does not make sense to do 100000 broadcasts in 10 seconds if the NIS-Server goes away. 10 in 10 seconds are enough. Martin RCS file: /FreeBSD/src/usr.sbin/ypbind/ypbind.c,v retrieving revision 1.30 diff -u -r1.30 ypbind.c --- src/usr.sbin/ypbind/ypbind.c 1999/08/28 01:21:06 1.30 +++ src/usr.sbin/ypbind/ypbind.c 2001/01/10 13:16:20 @@ -673,6 +673,9 @@ syslog(LOG_WARNING, "NIS server [%s] for domain \"%s\" not responding", inet_ntoa(ypdb->dom_server_addr.sin_addr), ypdb->dom_domain); + /* Avoid broadcast flooding */ + sleep(1); + broad_domain = ypdb; flock(ypdb->dom_lockfd, LOCK_UN); Martin Blapp, mb@imp.ch ------------------------------------------------ Improware AG, UNIX solution and service provider Zurlindenstrasse 29, 4133 Pratteln, Switzerland Phone: +41 79 370 26 05, Fax: +41 61 826 93 01 ------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message