Changeset 2a94c85 in rtems
- Timestamp:
- 05/24/05 00:36:35 (19 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- e2f88ab9
- Parents:
- 290268f
- Location:
- cpukit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/ChangeLog
r290268f r2a94c85 1 2005-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 1 6 2005-05-23 Ralf Corsepius <ralf.corsepius@rtems.org> 2 7 -
cpukit/libnetworking/netinet/ip_icmp.c
r290268f r2a94c85 98 98 99 99 extern struct protosw inetsw[]; 100 unsigned int icmplenPanicAvoided; 100 101 101 102 /* … … 140 141 /* Don't send error in response to malicious packet */ 141 142 icmplen = min(oiplen + 8, oip->ip_len); 142 if (icmplen < sizeof(struct ip)) 143 if (icmplen < sizeof(struct ip)) { 144 icmplenPanicAvoided++; 143 145 goto freeit; 146 } 147 144 148 /* 145 149 * First, formulate icmp message -
cpukit/libnetworking/rtems/rtems_showicmpstat.c
r290268f r2a94c85 37 37 int i; 38 38 char cbuf[20]; 39 extern unsigned int icmplenPanicAvoided; 39 40 40 41 printf ("************ ICMP Statistics ************\n"); … … 60 61 } 61 62 } 62 63 showicmpstat ("ICMP panic avoided", icmplenPanicAvoided); 63 64 printf ("\n"); 64 65 }
Note: See TracChangeset
for help on using the changeset viewer.