]> git.ozlabs.org Git - ppp.git/commitdiff
Add dummy have_route_to functions.
authorPaul Mackerras <paulus@samba.org>
Mon, 8 Mar 1999 01:46:24 +0000 (01:46 +0000)
committerPaul Mackerras <paulus@samba.org>
Mon, 8 Mar 1999 01:46:24 +0000 (01:46 +0000)
pppd/sys-NeXT.c
pppd/sys-aix4.c
pppd/sys-bsd.c
pppd/sys-osf.c
pppd/sys-sunos4.c
pppd/sys-ultrix.c

index e0c790e298d66b10f98e32656f91ce6eaa6b8ee4..b42e0d191161f9d05d757a25cd3ebcf1ac1f4e0c 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: sys-NeXT.c,v 1.10 1998/11/07 06:59:30 paulus Exp $";
+static char rcsid[] = "$Id: sys-NeXT.c,v 1.11 1999/03/08 01:46:19 paulus Exp $";
 #endif
 
 #include <stdio.h>
@@ -1193,6 +1193,16 @@ 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;
+}
 
 
 /*
index fe38972976f37902bc93435c51b6f7e2208e3866..e03c40728ef6bc45b7d6aac3a2b195af57997cd9 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: sys-aix4.c,v 1.13 1998/03/25 02:19:23 paulus Exp $";
+static char rcsid[] = "$Id: sys-aix4.c,v 1.14 1999/03/08 01:46:19 paulus Exp $";
 #endif
 
 /*
@@ -123,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.
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.
  */
index 93070e558ccb2c02c843781af1a6ca6b6d61b98b..38643cd9e2e5a8574a790a64c4ecf96c3aae8ba0 100644 (file)
@@ -26,7 +26,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: sys-osf.c,v 1.14 1998/11/07 06:59:31 paulus Exp $";
+static char rcsid[] = "$Id: sys-osf.c,v 1.15 1999/03/08 01:46:22 paulus Exp $";
 #endif
 
 #include <stdio.h>
@@ -1499,6 +1499,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;
+}
+
 static int
 strioctl(fd, cmd, ptr, ilen, olen)
     int fd, cmd, ilen, olen;
index ac24eb184364cf2c73b13123b08e44dcd103f5e1..615a548f674d45c263bd37c4d341524a590f11e3 100644 (file)
@@ -26,7 +26,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: sys-sunos4.c,v 1.10 1998/11/07 06:59:31 paulus Exp $";
+static char rcsid[] = "$Id: sys-sunos4.c,v 1.11 1999/03/08 01:46:24 paulus Exp $";
 #endif
 
 #include <stdio.h>
@@ -1218,6 +1218,17 @@ 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(u_int32_t addr)
+{
+    return -1;
+}
+
 #define        WTMPFILE        "/usr/adm/wtmp"
 
 void
index 691b38695e8dcee8a52ba9ccce153cbf911cf527..cb1303bad47fa5c015e13ca245c8c57b5b0178c7 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: sys-ultrix.c,v 1.23 1998/11/07 06:59:32 paulus Exp $";
+static char rcsid[] = "$Id: sys-ultrix.c,v 1.24 1999/03/08 01:46:24 paulus Exp $";
 #endif
 
 /*
@@ -1217,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.