Changeset 85ddf50 for libpacketdump


Ignore:
Timestamp:
11/18/09 14:14:13 (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:
550be94
Parents:
0ca90be
Message:
  • Don't assert fail if we get an unknown linktype
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/libpacketdump.cc

    r11a7f9c r85ddf50  
    184184                 * knows how to find us the ip header
    185185                 */
    186                 if (sname=="link") {
     186
     187                /* Also, don't try to skip if the linktype is not valid,
     188                 * because libtrace will just assert fail and that's never
     189                 * good */
     190                if (sname=="link" && type != -1) {
    187191                        uint16_t newtype;
    188192                        uint32_t newlen=len;
Note: See TracChangeset for help on using the changeset viewer.