Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jan 2000 17:55:38 +0100 (MET)
From:      hm@hcs.de (Hellmuth Michaelis)
To:        garyj@muc.de
Cc:        jan@sparud.net, freebsd-isdn@FreeBSD.ORG
Subject:   Re: LCP loop problem fixed
Message-ID:  <20000112165538.3A8CB3927@hcswork.hcs.de>
In-Reply-To: <200001102248.XAA63204@peedub.muc.de> from Gary Jennejohn at "Jan 10, 0 11:48:37 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000112165538.3A8CB3927>