From owner-freebsd-net Wed May 3 10: 3: 3 2000 Delivered-To: freebsd-net@freebsd.org Received: from pr.infosec.ru (pr.infosec.ru [194.135.141.98]) by hub.freebsd.org (Postfix) with ESMTP id 11D7737BB2A for ; Wed, 3 May 2000 10:02:54 -0700 (PDT) (envelope-from blaze@infosec.ru) Received: from blaze (200.0.0.51 [200.0.0.51]) by pr.infosec.ru with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id JZX8NSVM; Wed, 3 May 2000 21:02:40 +0400 Date: Wed, 3 May 2000 21:04:27 +0400 (MSD) From: Andrey Sverdlichenko X-Sender: blaze@blaze To: freebsd-net@freebsd.org Subject: double icmp response Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org If outgoing packet dropped by `unreach' action in ipfw, two icmp packets will be send: one from ip_fw.c and other from ip_forward.c. This patch correts this behavior. --- ip_input.c.old Mon Mar 27 23:14:21 2000 +++ ip_input.c Wed May 3 21:03:11 2000 @@ -1561,6 +1561,10 @@ return; } } + if (error == EACCES) { + m_freem(mcopy); + mcopy = NULL; + } if (mcopy == NULL) return; destifp = NULL; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message