Fix the loopback interface. Cleaning up some code with new macros

was a tad too aggressive.

PR:		kern/123568
Submitted by:	Vladimir Ermakov <samflanker at gmail dot com>
Obtained from:	antoine
This commit is contained in:
George V. Neville-Neil 2008-05-12 02:44:53 +00:00
parent e8f5c7a839
commit fff0ededf8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178960

View File

@ -631,7 +631,6 @@ 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++;