X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fsys-sunos4.c;h=75bc29f4552665f14f376b271ed56849b8015528;hb=0875ace97fd7efe9a109a282a2f30c20872c78aa;hp=74c0217ef2908d7c5ae160164b53dc0a42fec180;hpb=01ab847385f3d3abe64dbf4bea5363da3e6e1d64;p=ppp.git diff --git a/pppd/sys-sunos4.c b/pppd/sys-sunos4.c index 74c0217..75bc29f 100644 --- a/pppd/sys-sunos4.c +++ b/pppd/sys-sunos4.c @@ -26,7 +26,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: sys-sunos4.c,v 1.8 1997/04/30 05:58:52 paulus Exp $"; +static char rcsid[] = "$Id: sys-sunos4.c,v 1.12 1999/03/08 05:34:46 paulus Exp $"; #endif #include @@ -206,9 +206,10 @@ sys_close() /* * sys_check_options - check the options that the user specified */ -void +int sys_check_options() { + return 1; } @@ -1217,6 +1218,18 @@ get_ether_addr(ipaddr, hwaddr) return 1; } +/* + * 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(addr) + u_int32_t addr; +{ + return -1; +} + #define WTMPFILE "/usr/adm/wtmp" void @@ -1326,6 +1339,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.