]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/sys-aix4.c
Add dummy have_route_to functions.
[ppp.git] / pppd / sys-aix4.c
index d620b2fa37c46bf99013f5aef10676c75fb76dc2..e03c40728ef6bc45b7d6aac3a2b195af57997cd9 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: sys-aix4.c,v 1.12 1997/04/30 05:57:19 paulus Exp $";
+static char rcsid[] = "$Id: sys-aix4.c,v 1.14 1999/03/08 01:46:19 paulus Exp $";
 #endif
 
 /*
@@ -49,7 +49,6 @@ static char rcsid[] = "$Id: sys-aix4.c,v 1.12 1997/04/30 05:57:19 paulus Exp $";
 
 #include <net/if.h>
 #include <net/ppp_defs.h>
-#include <net/ppp_str.h>
 #include <net/route.h>
 #include <net/if_arp.h>
 #include <netinet/in.h>
@@ -124,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.
@@ -1277,6 +1287,15 @@ logwtmp(line, name, host)
     close(fd);
 }
 
+/*
+ * Use the hostid as part of the random number seed.
+ */
+int
+get_host_seed()
+{
+    return gethostid();
+}
+
 /*
  * Code for locking/unlocking the serial device.
  */