Add in check for loopback as well, which was missing from the original patch.

PR: 120958
Submitted by: James Snow <snow at teardrop.org>
MFC after: 2 weeks
This commit is contained in:
George V. Neville-Neil 2008-04-17 23:24:58 +00:00
parent a414225db1
commit 0327aeb9e3

View File

@ -624,6 +624,7 @@ icmp_reflect(struct mbuf *m)
if (IN_MULTICAST(ntohl(ip->ip_src.s_addr)) ||
IN_EXPERIMENTAL(ntohl(ip->ip_src.s_addr)) ||
IN_LOOPBACK(ntohl(ip->ip_src.s_addr)) ||
IN_ZERONET(ntohl(ip->ip_src.s_addr)) ) {
m_freem(m); /* Bad return address */
icmpstat.icps_badaddr++;