]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/sys-ultrix.c
MD4Update takes bytes not bits! Now the regression test of the README.MSCHAP80
[ppp.git] / pppd / sys-ultrix.c
index 43fd115136371f246183337fe0f20ff6d1b880f9..691b38695e8dcee8a52ba9ccce153cbf911cf527 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: sys-ultrix.c,v 1.21 1997/04/30 05:59:38 paulus Exp $";
+static char rcsid[] = "$Id: sys-ultrix.c,v 1.23 1998/11/07 06:59:32 paulus Exp $";
 #endif
 
 /*
@@ -137,13 +137,14 @@ sys_close()
 /*
  * sys_check_options - check the options that the user specified
  */
-void
+int
 sys_check_options()
 {
     if (demand) {
        option_error("Sorry - demand-dialling is not supported under Ultrix\n");
-       exit(1);
+       return 0;
     }
+    return 1;
 }
 
 
@@ -1217,6 +1218,16 @@ GetMask(addr)
 }
 
 
+/*
+ * Use the hostid as part of the random number seed.
+ */
+int
+get_host_seed()
+{
+    return gethostid();
+}
+
+
 /*
   Seems like strdup() is not part of string package in Ultrix.
   If I understood the man-page on the sun this should work.