+/*
+ * get_ppp_stats - return statistics for the link.
+ */
+int
+get_ppp_stats(u, stats)
+ int u;
+ struct ppp_stats *stats;
+{
+ if (strioctl(pppfd, PPPIO_GETSTAT, stats, 0, sizeof(*stats)) < 0) {
+ error("Couldn't get link statistics: %m");
+ return 0;
+ }
+ return 1;
+}
+