X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fsys-aix4.c;h=e03c40728ef6bc45b7d6aac3a2b195af57997cd9;hb=ac19750e0fb64986870e9bd9bad52d5ae46e2551;hp=ac608cd226b4fd2e7763167f5bf02fe112e88ffd;hpb=26a7a28f129d72feaa08ef589e9a49aafd16d984;p=ppp.git diff --git a/pppd/sys-aix4.c b/pppd/sys-aix4.c index ac608cd..e03c407 100644 --- a/pppd/sys-aix4.c +++ b/pppd/sys-aix4.c @@ -21,7 +21,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: sys-aix4.c,v 1.11 1997/03/04 03:43:52 paulus Exp $"; +static char rcsid[] = "$Id: sys-aix4.c,v 1.14 1999/03/08 01:46:19 paulus Exp $"; #endif /* @@ -49,7 +49,6 @@ static char rcsid[] = "$Id: sys-aix4.c,v 1.11 1997/03/04 03:43:52 paulus Exp $"; #include #include -#include #include #include #include @@ -124,6 +123,17 @@ sys_cleanup() cifproxyarp(0, proxy_arp_addr); } +/* + * have_route_to - determine if the system has any route to + * a given IP address. + * For demand mode to work properly, we have to ignore routes + * through our own interface. + */ +int have_route_to(u_int32_t addr) +{ + return -1; +} + /* * daemon - Detach us from the terminal session. @@ -546,7 +556,7 @@ output(unit, p, len) struct pollfd pfd; if (debug) - log_packet(p, len, "sent "); + log_packet(p, len, "sent ", LOG_DEBUG); str.len = len; str.buf = (caddr_t) p; @@ -1277,6 +1287,15 @@ logwtmp(line, name, host) close(fd); } +/* + * Use the hostid as part of the random number seed. + */ +int +get_host_seed() +{ + return gethostid(); +} + /* * Code for locking/unlocking the serial device. */