X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fsys-bsd.c;h=e4becf527ad2c32650a5035e4936c47ee2d61c94;hb=f0a6c417e65393d127a9f0fe0ba668ec2d2fdf3b;hp=88d22848272ab7461254e38348e16b513ad64f44;hpb=44e1777caa7658b455b5269f895734a5c33d2246;p=ppp.git diff --git a/pppd/sys-bsd.c b/pppd/sys-bsd.c index 88d2284..e4becf5 100644 --- a/pppd/sys-bsd.c +++ b/pppd/sys-bsd.c @@ -21,7 +21,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: sys-bsd.c,v 1.33 1998/09/04 18:49:16 christos Exp $"; +static char rcsid[] = "$Id: sys-bsd.c,v 1.35 1999/03/08 01:46:21 paulus Exp $"; /* $NetBSD: sys-bsd.c,v 1.1.1.3 1997/09/26 18:53:04 christos Exp $ */ #endif @@ -159,9 +159,16 @@ sys_close() /* * sys_check_options - check the options that the user specified */ -void +int sys_check_options() { +#ifndef CDTRCTS + if (crtscts == 2) { + syslog(LOG_WARNING, "DTR/CTS flow control is not supported on this system"); + return 0; + } +#endif + return 1; } /* @@ -389,9 +396,6 @@ set_up_tty(fd, local) if (crtscts == 2) { #ifdef CDTRCTS tios.c_cflag |= CDTRCTS; -#else - syslog(LOG_ERR, "System does not support DTR/CTS flow control"); - die(1); #endif } else tios.c_cflag |= CRTSCTS; @@ -1406,6 +1410,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. */