Changeset 39c3ce7 for libpacketdump
- Timestamp:
- 08/31/15 14:30:45 (5 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 206109f, 87cba74
- Parents:
- 7aa2a21
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpacketdump/ip_1.c
r387d299 r39c3ce7 26 26 { 27 27 libtrace_icmp_t *icmp = (libtrace_icmp_t*)packet; 28 int ippresent = 0; 28 29 if (len<1) 29 30 return; … … 48 49 printf(" ICMP: Code: %i (Unknown)\n",icmp->code); 49 50 } 50 // Pretend that this was just passed up from ethernet 51 decode_next(packet+8,len-8, 52 "eth",0x0800); 53 51 ippresent = 1; 54 52 break; 55 53 case 8: … … 62 60 case 11: 63 61 printf(" Type: 11 (ICMP TTL Exceeded)\n"); 64 decode_next(packet+8,len-8, 65 "eth",0x0800); 62 ippresent = 1; 66 63 break; 67 64 default: … … 76 73 printf("%u\n", ntohs(icmp->checksum)); 77 74 75 if (ippresent) { 76 decode_next(packet+8,len-8, 77 "eth",0x0800); 78 } 79 78 80 79 81 return;
Note: See TracChangeset
for help on using the changeset viewer.