diff options
author | joe <joe@FreeBSD.org> | 2001-06-21 10:28:40 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2001-06-21 10:28:40 +0000 |
commit | 687340bf5dad00341bb609926e06c73d7369f622 (patch) | |
tree | ae2158c18e29e244530e561a9964f265c5cbcc0b /sbin/natd | |
parent | fda1b11ea0d1c73e8d9de15a1c66e0dbca44dc2e (diff) | |
download | FreeBSD-src-687340bf5dad00341bb609926e06c73d7369f622.zip FreeBSD-src-687340bf5dad00341bb609926e06c73d7369f622.tar.gz |
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
Diffstat (limited to 'sbin/natd')
-rw-r--r-- | sbin/natd/natd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/natd/natd.c b/sbin/natd/natd.c index a41d540..3f5ae0d 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); } } |