From owner-freebsd-isdn Sat May 23 01:38:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA21177 for freebsd-isdn-outgoing; Sat, 23 May 1998 01:38:33 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from terminator.informatik.ba-stuttgart.de (terminator.informatik.ba-stuttgart.de [141.31.111.23]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA21162 for ; Sat, 23 May 1998 01:38:30 -0700 (PDT) (envelope-from helbig@Informatik.BA-Stuttgart.DE) Received: from rvc1.informatik.ba-stuttgart.de (rvc1.informatik.ba-stuttgart.de [141.31.112.22]) by terminator.informatik.ba-stuttgart.de (8.8.8/8.8.8) with ESMTP id KAA20904; Sat, 23 May 1998 10:22:46 +0200 (CEST) (envelope-from helbig@Informatik.BA-Stuttgart.DE) Received: (from helbig@localhost) by rvc1.informatik.ba-stuttgart.de (8.8.8/8.8.5) id KAA00227; Sat, 23 May 1998 10:22:28 +0200 (MET DST) From: Wolfgang Helbig Message-Id: <199805230822.KAA00227@rvc1.informatik.ba-stuttgart.de> Subject: Re: i4b-00.61-alpha-220598.tgz available for ftp In-Reply-To: from Hellmuth Michaelis at "May 22, 98 03:36:33 pm" To: hm@hcs.de Date: Sat, 23 May 1998 10:22:27 +0200 (MET DST) Cc: freebsd-isdn@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL30 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Hi, > Those of you running SMP machines: please check if the I4B_SMP_WORKAROUND > option is still necessary, i think i've found the cause why i4b did not > interrupt. Where?? Couldn't test it yet. But here is another merge from -current for if_spppsubr.c to make it compile in -current: Wolfgang --- /home/helbig/src/i4b/sppp/if_spppsubr.c Tue May 19 20:56:27 1998 +++ sppp/if_spppsubr.c Sat May 23 09:44:04 1998 @@ -17,7 +17,7 @@ * * From: Version 2.4, Thu Apr 30 17:17:21 MSD 1997 * - * From: if_spppsubr.c,v 1.36 1998/04/04 13:26:03 phk Exp + * From: if_spppsubr.c,v 1.39 1998/04/04 13:26:03 phk Exp * * $Id: if_spppsubr.c,v 1.13 1998/05/19 15:13:04 hm Exp $ */ @@ -1043,7 +1043,7 @@ /* Generate new local sequence number */ #if defined(__FreeBSD__) && __FreeBSD__ >= 3 - read_random((char*)&sp->pp_seq, sizeof sp->pp_seq); + sp->pp_seq = random(); #else sp->pp_seq ^= time.tv_sec ^ time.tv_usec; #endif @@ -1081,7 +1081,7 @@ #endif #if defined(__FreeBSD__) && __FreeBSD__ >= 3 - getmicroruntime(&tv); + getmicrouptime(&tv); #endif MGETHDR (m, M_DONTWAIT, MT_DATA); @@ -2198,7 +2198,7 @@ if (debug) addlog("magic glitch "); #if defined(__FreeBSD__) && __FreeBSD__ >= 3 - read_random((char*)&sp->lcp.magic, sizeof sp->lcp.magic); + sp->lcp.magic = random(); #else sp->lcp.magic = time.tv_sec + time.tv_usec; #endif @@ -2362,7 +2362,7 @@ if (sp->lcp.opts & (1 << LCP_OPT_MAGIC)) { if (! sp->lcp.magic) #if defined(__FreeBSD__) && __FreeBSD__ >= 3 - read_random((char*)&sp->lcp.magic, sizeof sp->lcp.magic); + sp->lcp.magic = random(); #else sp->lcp.magic = time.tv_sec + time.tv_usec; #endif @@ -3340,8 +3340,12 @@ /* Compute random challenge. */ ch = (u_long *)sp->myauth.challenge; +#if defined(__FreeBSD__) && __FreeBSD__ >= 3 + read_random(&seed, sizeof seed); +#else microtime(&tv); seed = tv.tv_sec ^ tv.tv_usec; +#endif ch[0] = seed ^ random(); ch[1] = seed ^ random(); ch[2] = seed ^ random(); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message