diff options
author | Eric Norum <WENorum@lbl.gov> | 2006-05-31 14:52:05 +0000 |
---|---|---|
committer | Eric Norum <WENorum@lbl.gov> | 2006-05-31 14:52:05 +0000 |
commit | 491d8825c94adc0515055960672c824035a45733 (patch) | |
tree | 30dc370c4d3acc99cf27db175bff150ec271b49c /cpukit | |
parent | 2006-05-31 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-491d8825c94adc0515055960672c824035a45733.tar.bz2 |
Update icps_allecho counter.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/libnetworking/netinet/ip_icmp.c | 11 |
2 files changed, 11 insertions, 4 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 16d20d2600..6e3a5e3bc2 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,7 @@ +2006-05-31 Eric Norum <norume@aps.anl.gov> + + * libnetworking/netinet/ip_icmp.c: Update icps_allecho counter. + 2006-05-30 Eric Norum <norume@aps.anl.gov> * libnetworking/netinet/icmp_var.h, diff --git a/cpukit/libnetworking/netinet/ip_icmp.c b/cpukit/libnetworking/netinet/ip_icmp.c index 7cd2668aa9..26d9b8b491 100644 --- a/cpukit/libnetworking/netinet/ip_icmp.c +++ b/cpukit/libnetworking/netinet/ip_icmp.c @@ -403,10 +403,13 @@ icmp_input(m, off) break; case ICMP_ECHO: - if (!icmpallecho - || (!icmpbmcastecho - && (m->m_flags & (M_MCAST | M_BCAST)) != 0 - && IN_MULTICAST(ntohl(ip->ip_dst.s_addr)))) { + if (!icmpallecho) { + icmpstat.icps_allecho++; + break; + } + if (!icmpbmcastecho + && (m->m_flags & (M_MCAST | M_BCAST)) != 0 + && IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) { icmpstat.icps_bmcastecho++; break; } |