Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 May 1998 10:22:27 +0200 (MET DST)
From:      Wolfgang Helbig <helbig@Informatik.BA-Stuttgart.DE>
To:        hm@hcs.de
Cc:        freebsd-isdn@FreeBSD.ORG
Subject:   Re: i4b-00.61-alpha-220598.tgz available for ftp
Message-ID:  <199805230822.KAA00227@rvc1.informatik.ba-stuttgart.de>
In-Reply-To: <m0ycrzt-00005jC@hcswork.hcs.de> from Hellmuth Michaelis at "May 22, 98 03:36:33 pm"

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



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