Ignore:
Timestamp:
10/28/05 16:57:37 (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:
950d54a
Parents:
b190686
Message:

fixed the legacyatm legacypos and legacyeth formats to correctly calculate the framing offset then use that to step into the link layer properly.
Added headers to deal with the link layers.

updated tracedump to be correct now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/tracedump/link_11.cc

    r57bbf89 rf04e489  
    1212{
    1313        printf(" Legacy Framing: ");
    14         if (len>=10) {
    15                 decode_next(packet+10,len-10,"link",2);
    16         }
    17         else {
    18                 printf("[|Truncated]\n");
    19                 return;
    20         }
     14        decode_next(packet,len,"link",2);
    2115        return;
    2216}
Note: See TracChangeset for help on using the changeset viewer.