Ignore:
Timestamp:
07/15/10 16:45:16 (11 years ago)
Author:
Shane Alcock <salcock@…>
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:
7af80ba
Parents:
148338c
Message:
  • Fixed bug where libpacketdump doesn't skip past IP options correctly before parsing the next header
  • Added a trace_hexdump_packet() which will dump the entire packet as hex, which can be useful for debugging libpacketdump
  • Use results of trace_get_capture_length() as the length when dumping packets, to avoid issues with an upcoming change
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/eth_2048.c

    rc7062df r66ad025  
    5858        DISPLAYIP(ip_src," IP: Source %s ");
    5959        DISPLAYIP(ip_dst,"Destination %s\n");
    60         decode_next(packet+sizeof(*ip),len-sizeof(*ip),"ip",ip->ip_p);
     60        decode_next(packet+ip->ip_hl*4,len-ip->ip_hl*4,"ip",ip->ip_p);
    6161        return;
    6262}
Note: See TracChangeset for help on using the changeset viewer.