From owner-freebsd-isdn Wed Jan 12 8:56: 3 2000 Delivered-To: freebsd-isdn@freebsd.org Received: from hcshh.hcs.de (hcshh.hcs.de [194.123.40.1]) by hub.freebsd.org (Postfix) with SMTP id 82D4215639 for ; Wed, 12 Jan 2000 08:55:48 -0800 (PST) (envelope-from hm@hcs.de) Received: from hcswork.hcs.de([192.76.124.5]) (1858 bytes) by hcshh.hcs.de via sendmail with P:smtp/R:inet_hosts/T:smtp (sender: ) id for ; Wed, 12 Jan 2000 17:55:47 +0100 (CET) (Smail-3.2.0.104 1998-Nov-20 #1 built 1998-Dec-11) Received: by hcswork.hcs.de (Postfix, from userid 200) id 3A8CB3927; Wed, 12 Jan 2000 17:55:38 +0100 (MET) Subject: Re: LCP loop problem fixed In-Reply-To: <200001102248.XAA63204@peedub.muc.de> from Gary Jennejohn at "Jan 10, 0 11:48:37 pm" To: garyj@muc.de Date: Wed, 12 Jan 2000 17:55:38 +0100 (MET) Cc: jan@sparud.net, freebsd-isdn@FreeBSD.ORG Reply-To: hm@hcs.de Organization: HCS Hanseatischer Computerservice GmbH X-Mailer: ELM [version 2.4ME+ PL39 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1007 Message-Id: <20000112165538.3A8CB3927@hcswork.hcs.de> From: hm@hcs.de (Hellmuth Michaelis) Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org From the keyboard of Gary Jennejohn: > This is great stuff and I'm glad you took the time to find and fix the > (apparent) bug. I only have one comment - where you define HZ as 100. This > information can be obtained from the kernel using sysctl. I've added the patch to my i4b tree and modified the spppcontrol part to get HZ via mib[0] = CTL_KERN; mib[1] = KERN_CLOCKRATE; len = sizeof(clockinfo); if(sysctl(mib, 2, &clockinfo, &len, NULL, 0) == -1) { fprintf(stderr, "error, cannot sysctl kern.clockrate!\n"); exit(1); } hz = clockinfo.hz; Thanks a lot for your work on this, Jan! hellmuth -- Hellmuth Michaelis Tel +49 40 559747-70 HCS Hanseatischer Computerservice GmbH Fax +49 40 559747-77 Oldesloer Strasse 97-99 Mail hm [at] hcs.de 22457 Hamburg WWW http://www.hcs.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message