Changeset 708f9ae for lib/format_pcap.c


Ignore:
Timestamp:
08/01/07 16:58:15 (15 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:
82b26ab
Parents:
646aca1
Message:
  • Updated a number of formats to not set the libtrace error for config options they didn't understand. trace_config will attempt to set the option upon their return and should be trusted to set the error appropriately if it also fails.
  • Updated the synopt report to report percentages of option combos in SYNs and SYNACKs separately
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcap.c

    r646aca1 r708f9ae  
    132132                case TRACE_OPTION_META_FREQ:
    133133                        /* No meta data for this format */
     134                case TRACE_OPTION_EVENT_REALTIME:
    134135                default:
    135                         trace_set_err(libtrace,TRACE_ERR_UNKNOWN_OPTION,
    136                                         "Unknown option %i", option);
    137136                        return -1;
    138137        }
     
    191190                case TRACE_OPTION_META_FREQ:
    192191                        /* No meta-data for this format */
     192                case TRACE_OPTION_EVENT_REALTIME:
     193                        /* live interface is always real-time! */
    193194                default:
    194                         trace_set_err(libtrace,TRACE_ERR_UNKNOWN_OPTION,
    195                                         "Unknown option %i", option);
     195                        /* Don't set an error here - trace_config will try
     196                         * to handle the option when we return. If it can't
     197                         * deal with it, then it will do the necessary
     198                         * error-setting. */
    196199                        return -1;
    197200        }
Note: See TracChangeset for help on using the changeset viewer.