X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fsys-solaris.c;h=fed68f50f8213b167583fe7ff8e013df2093361a;hb=e635acbbac0a7f27d110c4ad4d10c71f26b708f4;hp=2cba082652649376134971423e5c06a607ed8df3;hpb=392a4f54cb25e48eed9cf5443febeeba7eaf7cbc;p=ppp.git diff --git a/pppd/sys-solaris.c b/pppd/sys-solaris.c index 2cba082..fed68f5 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.6 2001/05/23 03:39:13 paulus Exp $" #include #include @@ -1292,8 +1292,7 @@ output(unit, p, len) int retries; struct pollfd pfd; - if (debug) - dbglog("sent %P", p, len); + dump_packet("sent", p, len); data.len = len; data.buf = (caddr_t) p; @@ -1520,7 +1519,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 +1536,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 +1628,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 +1957,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;