diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1996-01-11 17:48:59 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1996-01-11 17:48:59 +0000 |
commit | ed6a16c1817628e876636bd19662b56620f1a4f7 (patch) | |
tree | 97b25e0059b526362e8a00bdfee724ccf226243c /usr.sbin/ppp/ip.c | |
parent | 5a39b83123277b3da8db6182683fa29b1eef82cd (diff) | |
download | src-test2-ed6a16c1817628e876636bd19662b56620f1a4f7.tar.gz src-test2-ed6a16c1817628e876636bd19662b56620f1a4f7.zip |
Notes
Diffstat (limited to 'usr.sbin/ppp/ip.c')
-rw-r--r-- | usr.sbin/ppp/ip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c index 1fbba1a7a1e9..6be717ab6187 100644 --- a/usr.sbin/ppp/ip.c +++ b/usr.sbin/ppp/ip.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: ip.c,v 1.5 1995/09/17 16:14:46 amurai Exp $ + * $Id: ip.c,v 1.6 1996/01/10 21:27:50 phk Exp $ * * TODO: * o Return ICMP message for filterd packet @@ -31,11 +31,11 @@ #include <netinet/ip_icmp.h> #include <netinet/udp.h> #include <netinet/tcp.h> +#include <arpa/inet.h> #include "vars.h" #include "filter.h" extern void SendPppFrame(); -extern int PacketCheck(); extern void LcpClose(); static struct pppTimer IdleTimer; @@ -341,7 +341,7 @@ struct mbuf *bp; /* IN: Pointer to IP pakcet */ */ nw = write(tun_out, tunbuff, nb); if (nw != nb) - fprintf(stderr, "wrote %d, got %d\r\n"); + fprintf(stderr, "wrote %d, got %d\r\n", nb, nw); pfree(bp); RestartIdleTimer(); |