Changeset cf612fa


Ignore:
Timestamp:
08/22/06 00:25:15 (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:
835a1ec
Parents:
8bf0517
Message:

Pass the correct trace object to allow error reporting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    rd923b5a rcf612fa  
    901901}
    902902
    903 static bool find_compatible_linktype(libtrace_packet_t *packet)
     903static bool find_compatible_linktype(libtrace_out_t *libtrace,
     904                                libtrace_packet_t *packet)
    904905{
    905906        /* Keep trying to simplify the packet until we can find
     
    913914
    914915                if (!demote_packet(packet)) {
    915                         trace_set_err_out(packet->trace,
     916                        trace_set_err_out(libtrace,
    916917                                        TRACE_ERR_NO_CONVERSION,
    917918                                        "No erf type for packet (%i)",
     
    926927               
    927928static int erf_write_packet(libtrace_out_t *libtrace,
    928                 const libtrace_packet_t *packet)
     929                libtrace_packet_t *packet)
    929930{
    930931        int numbytes = 0;
     
    974975                        erfhdr.flags.iface = trace_get_direction(packet);
    975976
    976                 if (!find_compatible_linktype(packet))
     977                if (!find_compatible_linktype(libtrace,packet))
    977978                        return -1;
    978979
Note: See TracChangeset for help on using the changeset viewer.