From ea21e67db9c7e5cb3122afe8d20171fab568faa8 Mon Sep 17 00:00:00 2001 From: brian Date: Mon, 6 Sep 1999 18:20:26 +0000 Subject: Make the ``Problem with IP header length'' error a bit more verbose --- usr.sbin/ppp/alias_cmd.c | 3 ++- usr.sbin/ppp/nat_cmd.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'usr.sbin/ppp') 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; } -- cgit v1.1