diff options
author | phk <phk@FreeBSD.org> | 1996-01-11 17:48:59 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-01-11 17:48:59 +0000 |
commit | 205670521861f654e6607b24a0d60c9dea033b3c (patch) | |
tree | 97b25e0059b526362e8a00bdfee724ccf226243c /usr.sbin/ppp/ip.c | |
parent | 7bf532e1cd2982ba101a1fceae9eee6faa99e57c (diff) | |
download | FreeBSD-src-205670521861f654e6607b24a0d60c9dea033b3c.zip FreeBSD-src-205670521861f654e6607b24a0d60c9dea033b3c.tar.gz |
Final cleanup for now. -Wall is now silent. A couple of bogons found.
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 1fbba1a..6be717a 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(); |