Changeset 261e743 in rtems


Ignore:
Timestamp:
May 30, 2006, 3:12:54 PM (14 years ago)
Author:
Eric Norum <WENorum@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
2ba4b72
Parents:
ebbe2af2
Message:

Add flag to inhibit ICMP replies.

Location:
cpukit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rebbe2af2 r261e743  
     12006-05-30      Eric Norum <norume@aps.anl.gov>
     2
     3    * libnetworking/netinet/icmp_var.h,
     4    libnetworking/netinet/ip_icmp.c,
     5    libnetworking/rtems/rtems_showicmpstat.c: Add flag to inhibit ICMP replies.
     6
    172006-05-25      Eric Norum <norume@aps.anl.gov>
    28
  • cpukit/libnetworking/netinet/icmp_var.h

    rebbe2af2 r261e743  
    5555        u_long  icps_reflect;           /* number of responses */
    5656        u_long  icps_inhist[ICMP_MAXTYPE + 1];
     57        u_long  icps_allecho;           /* all echo requests dropped */
    5758        u_long  icps_bmcastecho;        /* b/mcast echo requests dropped */
    5859        u_long  icps_bmcasttstamp;      /* b/mcast tstamp requests dropped */
  • cpukit/libnetworking/netinet/ip_icmp.c

    rebbe2af2 r261e743  
    8989           0, "");
    9090
     91static int  icmpallecho = 1;
     92SYSCTL_INT(_net_inet_icmp, OID_AUTO, allecho, CTLFLAG_RW, &icmpallecho,
     93           0, "");
     94
    9195/* #define ICMPPRINTFS 1 */
    9296#ifdef ICMPPRINTFS
     
    400404
    401405        case ICMP_ECHO:
    402                 if (!icmpbmcastecho
    403                     && (m->m_flags & (M_MCAST | M_BCAST)) != 0
    404                     && IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) {
     406                if (!icmpallecho
     407                    || (!icmpbmcastecho
     408                        && (m->m_flags & (M_MCAST | M_BCAST)) != 0
     409                        && IN_MULTICAST(ntohl(ip->ip_dst.s_addr)))) {
    405410                        icmpstat.icps_bmcastecho++;
    406411                        break;
  • cpukit/libnetworking/rtems/rtems_showicmpstat.c

    rebbe2af2 r261e743  
    5353        showicmpstat ("calculated bound mismatch", icmpstat.icps_badlen);
    5454        showicmpstat ("number of responses", icmpstat.icps_reflect);
     55        showicmpstat ("all echo requests dropped", icmpstat.icps_allecho);
    5556        showicmpstat ("b/mcast echo requests dropped", icmpstat.icps_bmcastecho);
    5657        showicmpstat ("b/mcast tstamp requests dropped", icmpstat.icps_bmcasttstamp);
Note: See TracChangeset for help on using the changeset viewer.