Changeset 48589ca


Ignore:
Timestamp:
12/08/06 11:49:22 (14 years ago)
Author:
Scott Raynel <smr26@…>
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
Message:

libpacketdump: display ICMP sequence in echo request/reply

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/ip_1.c

    r0a22046 r48589ca  
    4747        switch(icmp->type) {
    4848                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));
    5054                        break;
    5155                case 3:
     
    6670                        break;
    6771                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));
    6977                        break;
    7078                case 11:
Note: See TracChangeset for help on using the changeset viewer.