Changeset 9d6b5cd


Ignore:
Timestamp:
08/25/06 15:48:53 (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:
d0fd73c
Parents:
e283596
Message:

Deal with trace_packet_dump() being passed a packet without a link layer

Location:
libpacketdump
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/libpacketdump.cc

    r9461526 r9d6b5cd  
    8585
    8686        printf("%s",ctime(&sec));
    87         decode_next(link,packet->size-trace_get_framing_length(packet),
    88                         "link",
     87        if (!link)
     88                printf(" [No link layer available]\n");
     89        else
     90                decode_next(link,trace_get_capture_length(packet), "link",
    8991                        trace_get_link_type(packet));
    9092}
  • libpacketdump/parser/parser.h

    r6a18893 r9d6b5cd  
    5959
    6060#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
    61 #line 28 "parser.y"
     61#line 27 "parser.y"
    6262typedef union YYSTYPE {
    6363    int intval;
Note: See TracChangeset for help on using the changeset viewer.