Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 2001 16:44:59 +0100 (CET)
From:      Martin Blapp <mb@imp.ch>
To:        freebsd-questions@freebsd.org
Subject:   RE: HELP: ypbind flooding network (PATCH)
Message-ID:  <Pine.BSF.4.21.0101101644120.21431-100000@levais.imp.ch>
In-Reply-To: <Pine.BSF.4.21.0101101639180.21431-100000@levais.imp.ch>

next in thread | previous in thread | raw e-mail | index | archive | help

 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0101101644120.21431-100000>