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:
parent
a414225db1
commit
0327aeb9e3
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user