summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/ip.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-04-25 09:16:23 +0000
committerbrian <brian@FreeBSD.org>1998-04-25 09:16:23 +0000
commitdff88555004347a74a14938c788cf3f1cd019118 (patch)
treeb1e12c14fb505577ef91a7f01238ccf245c5be27 /usr.sbin/ppp/ip.c
parent803f1dcc1d55caf070115b0a765bd9130fafaeb8 (diff)
downloadFreeBSD-src-dff88555004347a74a14938c788cf3f1cd019118.zip
FreeBSD-src-dff88555004347a74a14938c788cf3f1cd019118.tar.gz
Quieten gcc-2.8.1
Diffstat (limited to 'usr.sbin/ppp/ip.c')
-rw-r--r--usr.sbin/ppp/ip.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c
index a784bb5..e9546e0 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.38 1998/01/21 02:15:16 brian Exp $
+ * $Id: ip.c,v 1.39 1998/03/13 01:36:09 brian Exp $
*
* TODO:
* o Return ICMP message for filterd packet
@@ -427,12 +427,13 @@ IpInput(struct mbuf * bp)
nb = ntohs(((struct ip *) tun.data)->ip_len);
nb += sizeof tun - sizeof tun.data;
nw = write(tun_out, &tun, nb);
- if (nw != nb)
+ if (nw != nb) {
if (nw == -1)
LogPrintf(LogERROR, "IpInput: wrote %d, got %s\n", nb,
strerror(errno));
else
LogPrintf(LogERROR, "IpInput: wrote %d, got %d\n", nb, nw);
+ }
if (iresult == PKT_ALIAS_FOUND_HEADER_FRAGMENT) {
while ((fptr = VarPacketAliasGetFragment(tun.data)) != NULL) {
@@ -442,12 +443,13 @@ IpInput(struct mbuf * bp)
((char *)fptr - sizeof tun + sizeof tun.data);
nb += sizeof tun - sizeof tun.data;
nw = write(tun_out, frag, nb);
- if (nw != nb)
+ if (nw != nb) {
if (nw == -1)
LogPrintf(LogERROR, "IpInput: wrote %d, got %s\n", nb,
strerror(errno));
else
LogPrintf(LogERROR, "IpInput: wrote %d, got %d\n", nb, nw);
+ }
free(frag);
}
}
OpenPOWER on IntegriCloud