X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fsys-osf.c;h=d1b82200e467fbab78bf64bc75c1b6738497172d;hp=b328ebb18e87b271413fed7ab5086fa6d69996db;hb=2dc6b270ecf72688083f03d80df67d0682e1e02c;hpb=26a7a28f129d72feaa08ef589e9a49aafd16d984 diff --git a/pppd/sys-osf.c b/pppd/sys-osf.c index b328ebb..d1b8220 100644 --- a/pppd/sys-osf.c +++ b/pppd/sys-osf.c @@ -26,7 +26,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: sys-osf.c,v 1.11 1997/03/04 03:43:53 paulus Exp $"; +static char rcsid[] = "$Id: sys-osf.c,v 1.13 1998/03/25 02:19:27 paulus Exp $"; #endif #include @@ -750,7 +750,7 @@ output(unit, p, len) struct pollfd pfd; if (debug) - log_packet(p, len, "sent "); + log_packet(p, len, "sent ", LOG_DEBUG); data.len = len; data.buf = (caddr_t) p; @@ -981,6 +981,8 @@ ccp_test(unit, opt_ptr, opt_len, for_transmit) break; wait_time(&tval); } + if (errno != 0) + syslog(LOG_ERR, "hard failure trying to get memory for a compressor: %m"); return (errno == ENOSR)? 0: -1; } @@ -1186,6 +1188,12 @@ sifaddr(u, o, h, m) ret = 0; } + ifr.ifr_metric = link_mtu; + if (ioctl(sockfd, SIOCSIPMTU, &ifr) < 0) { + syslog(LOG_ERR, "Couldn't set IP MTU: %m"); + ret = 0; + } + ifaddrs[0] = o; ifaddrs[1] = h; return (ret); @@ -1509,6 +1517,15 @@ strioctl(fd, cmd, ptr, ilen, olen) return 0; } +/* + * Use the hostid as part of the random number seed. + */ +int +get_host_seed() +{ + return gethostid(); +} + /* * Code for locking/unlocking the serial device. * This code is derived from chat.c.