74 |
case ICMP_ECHO: |
case ICMP_ECHO: |
75 |
/* broadcast or multicast destination address? */ |
/* broadcast or multicast destination address? */ |
76 |
if (ip_addr_isbroadcast(&iphdr->dest, inp) || ip_addr_ismulticast(&iphdr->dest)) { |
if (ip_addr_isbroadcast(&iphdr->dest, inp) || ip_addr_ismulticast(&iphdr->dest)) { |
77 |
LWIP_DEBUGF(ICMP_DEBUG, ("Smurf.\n")); |
LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: Not echoing to multicast or broadcast pings\n")); |
78 |
ICMP_STATS_INC(icmp.err); |
ICMP_STATS_INC(icmp.err); |
79 |
pbuf_free(p); |
pbuf_free(p); |
80 |
return; |
return; |