mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
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:
parent
47f7cc6db5
commit
dc2ea2d874
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78547
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user