Ignore:
Timestamp:
10/03/07 13:26:33 (14 years ago)
Author:
Perry Lorier <perry@…>
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:
503a58c
Parents:
988e253
Message:

Change the IP header definition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/eth_2048.c

    r4f55f69 r049e277  
    3636       
    3737        if ((unsigned int)len >= ((char *)&ip->ip_ttl - (char *)ip - 2)) {
    38                 printf(" Fragoff %i", ip->ip_off);
    39                 if (ip->ip_mf) printf(" MORE_FRAG");
    40                 if (ip->ip_df) printf(" DONT_FRAG");
    41                 if (ip->ip_rf) printf(" RESV_FRAG");
     38                printf(" Fragoff %i", ntohs(ip->ip_off) & 0x1FFF);
     39                if (ntohs(ip->ip_off) & 0x2000) printf(" MORE_FRAG");
     40                if (ntohs(ip->ip_off) & 0x4000) printf(" DONT_FRAG");
     41                if (ntohs(ip->ip_off) & 0x8000) printf(" RESV_FRAG");
    4242        }
    4343        //printf("\n IP:");
Note: See TracChangeset for help on using the changeset viewer.