X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fsys-ultrix.c;h=cb1303bad47fa5c015e13ca245c8c57b5b0178c7;hb=ac19750e0fb64986870e9bd9bad52d5ae46e2551;hp=d956be4ba4339d542fdefe69606a5e41f2151fa6;hpb=1ca8987a9799a1a093d09de16487702bc1821a7b;p=ppp.git diff --git a/pppd/sys-ultrix.c b/pppd/sys-ultrix.c index d956be4..cb1303b 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.22 1998/03/25 03:09:12 paulus Exp $"; +static char rcsid[] = "$Id: sys-ultrix.c,v 1.24 1999/03/08 01:46:24 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; } @@ -1216,6 +1217,17 @@ GetMask(addr) return mask; } +/* + * 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; +} + /* * Use the hostid as part of the random number seed.