Changeset 049e277


Ignore:
Timestamp:
10/03/07 13:26:33 (13 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

Location:
libpacketdump
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/Makefile.am

    r0c47bf4 r049e277  
    143143        cd $(DESTDIR)$(plugindir) && $(LN_S) -f eth_2048.so ppp_33.so
    144144        cd $(DESTDIR)$(plugindir) && $(LN_S) -f eth_2048.so link_5.so
     145        cd $(DESTDIR)$(plugindir) && $(LN_S) -f ip_41.protocol eth_34525.protocol
  • 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.