When reporting that a packet can't be written back, usually because

of a restrictive firewall rule, also report detail on the packet
that caused the failure.

MFC after:	3 days
This commit is contained in:
joe 2001-06-21 10:28:40 +00:00
parent 53cce26e20
commit dcbb32a317

View File

@ -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);
}
}