summaryrefslogtreecommitdiff
path: root/pppd/sys-solaris.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2001-04-27 23:16:13 +0000
committerPaul Mackerras <paulus@samba.org>2001-04-27 23:16:13 +0000
commitffa027207fff95bd19cb529105bd549fb6ae1709 (patch)
tree0142f3b6c2f32ac5ee8538433bf2370302b15814 /pppd/sys-solaris.c
parentaac99e2604e20409d9f0538ceb8590c2f75220a0 (diff)
downloadppp-ffa027207fff95bd19cb529105bd549fb6ae1709.tar.gz
minor bugfixes, now 2.4.2b1, add pkts_in/out to pppd_stats,
finish transition to netif_set_mtu and tty_send/recv_config
Diffstat (limited to 'pppd/sys-solaris.c')
-rw-r--r--pppd/sys-solaris.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/pppd/sys-solaris.c b/pppd/sys-solaris.c
index 2cba082..ff9c7de 100644
--- a/pppd/sys-solaris.c
+++ b/pppd/sys-solaris.c
@@ -42,7 +42,7 @@
* OR MODIFICATIONS.
*/
-#define RCSID "$Id: sys-solaris.c,v 1.4 2001/03/12 22:59:00 paulus Exp $"
+#define RCSID "$Id: sys-solaris.c,v 1.5 2001/04/27 23:16:13 paulus Exp $"
#include <limits.h>
#include <stdio.h>
@@ -1520,7 +1520,7 @@ tty_send_config(mtu, asyncmap, pcomp, accomp)
}
/*
- * ppp_set_xaccm - set the extended transmit ACCM for the interface.
+ * tty_set_xaccm - set the extended transmit ACCM for the interface.
*/
void
tty_set_xaccm(accm)
@@ -1537,7 +1537,7 @@ tty_set_xaccm(accm)
}
/*
- * ppp_recv_config - configure the receive-side characteristics of
+ * tty_recv_config - configure the receive-side characteristics of
* the ppp interface.
*/
void
@@ -1629,6 +1629,8 @@ get_ppp_stats(u, stats)
}
stats->bytes_in = s.p.ppp_ibytes;
stats->bytes_out = s.p.ppp_obytes;
+ stats->pkts_in = s.p.ppp_ipackets;
+ stats->pkts_out = s.p.ppp_opackets;
return 1;
}
@@ -1956,12 +1958,6 @@ sifaddr(u, o, h, m)
error("Couldn't set remote IP address: %m");
ret = 0;
}
-#if 0 /* now done in ppp_send_config */
- ifr.ifr_metric = link_mtu;
- if (ioctl(ipfd, SIOCSIFMTU, &ifr) < 0) {
- error("Couldn't set IP MTU: %m");
- }
-#endif
remote_addr = h;
return ret;