Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 May 2000 21:04:27 +0400 (MSD)
From:      Andrey Sverdlichenko <blaze@infosec.ru>
To:        freebsd-net@freebsd.org
Subject:   double icmp response
Message-ID:  <Pine.BSF.4.20.0005032057580.6862-100000@blaze>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.20.0005032057580.6862-100000>