summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-09-06 18:20:26 +0000
committerbrian <brian@FreeBSD.org>1999-09-06 18:20:26 +0000
commitea21e67db9c7e5cb3122afe8d20171fab568faa8 (patch)
tree004cc344333297a024da4e54df188f879946fdf0 /usr.sbin/ppp
parent029c9bc2f500e01e15206aa38ec062dfbdc18f5a (diff)
downloadFreeBSD-src-ea21e67db9c7e5cb3122afe8d20171fab568faa8.zip
FreeBSD-src-ea21e67db9c7e5cb3122afe8d20171fab568faa8.tar.gz
Make the ``Problem with IP header length'' error a bit more verbose
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/alias_cmd.c3
-rw-r--r--usr.sbin/ppp/nat_cmd.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ppp/alias_cmd.c b/usr.sbin/ppp/alias_cmd.c
index 2083910..0439042 100644
--- a/usr.sbin/ppp/alias_cmd.c
+++ b/usr.sbin/ppp/alias_cmd.c
@@ -391,7 +391,8 @@ nat_LayerPull(struct bundle *bundle, struct link *l, struct mbuf *bp,
bp->cnt = ntohs(pip->ip_len);
if (bp->cnt > MAX_MRU) {
- log_Printf(LogWARN, "nat_LayerPull: Problem with IP header length\n");
+ log_Printf(LogWARN, "nat_LayerPull: Problem with IP header length (%d)\n",
+ bp->cnt);
mbuf_Free(bp);
return NULL;
}
diff --git a/usr.sbin/ppp/nat_cmd.c b/usr.sbin/ppp/nat_cmd.c
index 2083910..0439042 100644
--- a/usr.sbin/ppp/nat_cmd.c
+++ b/usr.sbin/ppp/nat_cmd.c
@@ -391,7 +391,8 @@ nat_LayerPull(struct bundle *bundle, struct link *l, struct mbuf *bp,
bp->cnt = ntohs(pip->ip_len);
if (bp->cnt > MAX_MRU) {
- log_Printf(LogWARN, "nat_LayerPull: Problem with IP header length\n");
+ log_Printf(LogWARN, "nat_LayerPull: Problem with IP header length (%d)\n",
+ bp->cnt);
mbuf_Free(bp);
return NULL;
}
OpenPOWER on IntegriCloud