Changeset 2a94c85 in rtems


Ignore:
Timestamp:
05/24/05 00:36:35 (17 years ago)
Author:
Eric Norum <WENorum@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
e2f88ab9
Parents:
290268f
Message:

Add "ICMP panic avoided" diagnostic counter.

Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r290268f r2a94c85  
     12005-05-23      Eric Norum <norume@aps.anl.gov>
     2
     3        * libnetworking/rtems/rtems_showicmpstat.c
     4        * libnetworking/netinet/ip_icmp.c: note that a panic has been avoided
     5
    162005-05-23  Ralf Corsepius  <ralf.corsepius@rtems.org>
    27
  • cpukit/libnetworking/netinet/ip_icmp.c

    r290268f r2a94c85  
    9898
    9999extern  struct protosw inetsw[];
     100unsigned int icmplenPanicAvoided;
    100101
    101102/*
     
    140141    /* Don't send error in response to malicious packet */
    141142        icmplen = min(oiplen + 8, oip->ip_len);
    142         if (icmplen < sizeof(struct ip))
     143        if (icmplen < sizeof(struct ip)) {
     144                icmplenPanicAvoided++;
    143145                goto freeit;
     146    }
     147
    144148        /*
    145149         * First, formulate icmp message
  • cpukit/libnetworking/rtems/rtems_showicmpstat.c

    r290268f r2a94c85  
    3737        int i;
    3838        char cbuf[20];
     39        extern unsigned int icmplenPanicAvoided;
    3940
    4041        printf ("************ ICMP Statistics ************\n");
     
    6061                }
    6162        }
    62 
     63        showicmpstat ("ICMP panic avoided", icmplenPanicAvoided);
    6364        printf ("\n");
    6465}
Note: See TracChangeset for help on using the changeset viewer.