]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/sys-bsd.c
Put in a have_route_to cobbled up from stuff sent by Sowmini.
[ppp.git] / pppd / sys-bsd.c
index 4239d0fc8dc2628f0dfda3b2cfd85e585eb77a19..e4becf527ad2c32650a5035e4936c47ee2d61c94 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: sys-bsd.c,v 1.34 1998/11/07 06:59:30 paulus 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
 
@@ -1410,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.
  */