diff --git a/sbin/natd/natd.c b/sbin/natd/natd.c index a41d540b4bda..3f5ae0dd362e 100644 --- a/sbin/natd/natd.c +++ b/sbin/natd/natd.c @@ -586,7 +586,7 @@ static void DoAliasing (int fd, int direction) static void FlushPacketBuffer (int fd) { int wrote; - char msgBuf[80]; + char msgBuf[160]; /* * Put packet back for processing. */ @@ -616,7 +616,8 @@ static void FlushPacketBuffer (int fd) } else { - sprintf (msgBuf, "failed to write packet back"); + sprintf (msgBuf, "failed to write packet back (%s)", + FormatPacket((struct ip*) packetBuf)); Warn (msgBuf); } }