Changeset e90d5a8 for lib/format_rt.c


Ignore:
Timestamp:
03/06/12 10:18:59 (10 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:
fefd34b
Parents:
d8eb866
Message:
  • Added a couple of new error types: BAD_FILTER and RT_FAILURE, with the aim of trying to restrict the use of BAD_PACKET to cases where the packet is clearly corrupt or broken
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_rt.c

    rd8eb866 re90d5a8  
    348348                                                MSG_NOSIGNAL|block)) <= 0) {
    349349                                if (numbytes == 0) {
    350                                         trace_set_err(libtrace, TRACE_ERR_BAD_PACKET,
     350                                        trace_set_err(libtrace, TRACE_ERR_RT_FAILURE,
    351351                                                        "No data received");
    352352                                        return -1;
     
    478478                                printf("Error sending ack\n");
    479479                                perror("send");
    480                                 trace_set_err(libtrace, TRACE_ERR_BAD_PACKET,
     480                                trace_set_err(libtrace, TRACE_ERR_RT_FAILURE,
    481481                                                "Error sending ack");
    482482                                return -1;
Note: See TracChangeset for help on using the changeset viewer.