X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fsys-ultrix.c;h=d956be4ba4339d542fdefe69606a5e41f2151fa6;hb=1ab9ab93491c12576fa771db9388bf6ab76c788c;hp=95bb7dd4721dc021ef2d9c72a23e5a5e42cad254;hpb=26a7a28f129d72feaa08ef589e9a49aafd16d984;p=ppp.git diff --git a/pppd/sys-ultrix.c b/pppd/sys-ultrix.c index 95bb7dd..d956be4 100644 --- a/pppd/sys-ultrix.c +++ b/pppd/sys-ultrix.c @@ -21,7 +21,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: sys-ultrix.c,v 1.20 1997/03/04 03:43:54 paulus Exp $"; +static char rcsid[] = "$Id: sys-ultrix.c,v 1.22 1998/03/25 03:09:12 paulus Exp $"; #endif /* @@ -562,7 +562,7 @@ output(unit, p, len) int len; { if (debug) - log_packet(p, len, "sent "); + log_packet(p, len, "sent ", LOG_DEBUG); if (write(ttyfd, p, len) < 0) { if (errno != EIO) @@ -980,7 +980,7 @@ cifaddr(u, o, h) */ int sifdefaultroute(u, l, g) - int unit; + int u; u_int32_t l, g; { struct rtentry rt; @@ -1003,7 +1003,7 @@ sifdefaultroute(u, l, g) */ int cifdefaultroute(u, l, g) - int unit; + int u; u_int32_t l, g; { struct rtentry rt; @@ -1217,6 +1217,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.