aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
authorJesper Skriver <jesper@FreeBSD.org>2001-02-21 16:59:47 +0000
committerJesper Skriver <jesper@FreeBSD.org>2001-02-21 16:59:47 +0000
commit43c77c8f5f745defcb57fe61731e0a35f629ada9 (patch)
tree4185286f333f46e8818ab61d216b9615daf42972 /sys/netinet/ip_input.c
parent5bf44e3d56da561d0c028b5ac9f370bc73aac457 (diff)
downloadsrc-43c77c8f5f745defcb57fe61731e0a35f629ada9.tar.gz
src-43c77c8f5f745defcb57fe61731e0a35f629ada9.zip
Backout change in 1.153, as it violate rfc1122 section 3.2.1.3.
Requested by: jlemon,ru
Notes
Notes: svn path=/head/; revision=72803
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 4d134d35c8b1..ca36031ff8da 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -124,10 +124,6 @@ SYSCTL_INT(_net_inet_ip, IPCTL_KEEPFAITH, keepfaith, CTLFLAG_RW,
&ip_keepfaith, 0,
"Enable packet capture for FAITH IPv4->IPv6 translater daemon");
-int ip_send_unreach = 1;
-SYSCTL_INT(_net_inet_ip, OID_AUTO, send_unreach, CTLFLAG_RW, &ip_send_unreach,
- 0, "Send ICMP unreach when packet not for us rx, and forwarding disabled");
-
#ifdef DIAGNOSTIC
static int ipprintfs = 0;
#endif
@@ -589,14 +585,7 @@ pass:
*/
if (ipforwarding == 0) {
ipstat.ips_cantforward++;
- /*
- * If we receive a packet not for us, and forwarding disabled
- * send a ICMP host unreachable back to the source.
- */
- if (ip_send_unreach)
- icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_HOST, 0, 0);
- else
- m_freem(m);
+ m_freem(m);
} else
ip_forward(m, 0);
#ifdef IPFIREWALL_FORWARD