Changeset 48589ca for libpacketdump
- Timestamp:
- 12/08/06 11:49:22 (14 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, 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:
- afd283a
- Parents:
- d4c8a518
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpacketdump/ip_1.c
r0a22046 r48589ca 47 47 switch(icmp->type) { 48 48 case 0: 49 printf(" Type: 0 (ICMP Echo Reply)\n"); 49 printf(" Type: 0 (ICMP Echo Reply) Sequence: "); 50 if (len < 4) 51 printf("(Truncated)\n"); 52 else 53 printf("%u\n", ntohs(icmp->un.echo.sequence)); 50 54 break; 51 55 case 3: … … 66 70 break; 67 71 case 8: 68 printf(" Type: 8 (ICMP Echo Request)\n"); 72 printf(" Type: 8 (ICMP Echo Request) Sequence: "); 73 if (len < 4) 74 printf("(Truncated)\n"); 75 else 76 printf("%u\n", ntohs(icmp->un.echo.sequence)); 69 77 break; 70 78 case 11:
Note: See TracChangeset
for help on using the changeset viewer.