Changeset 7d952cb for libpacketdump


Ignore:
Timestamp:
10/31/06 14:34:50 (15 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
19c6cbe
Parents:
5551415
Message:

Modified libpacketdump to show DSCP and ECN fields rather than TOS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/eth_2048.c

    rfc2078d r7d952cb  
    2828                printf(" Ver %i",ip->ip_v);
    2929        }
    30         DISPLAY(ip_tos," TOS %02x")
     30        //DISPLAY(ip_tos," TOS %02x")
     31        DISPLAY_EXP(ip_tos," DSCP %02x",ip->ip_tos >> 2)
     32        DISPLAY_EXP(ip_tos," ECN %x",ip->ip_tos & 0x2)
    3133        DISPLAYS(ip_len," Total Length %i")
    3234        printf("\n IP:");
Note: See TracChangeset for help on using the changeset viewer.