Ignore:
Timestamp:
04/24/06 18:42:43 (16 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:
cee9e34
Parents:
97c8d58
Message:

Clean up the various usages of TRACE_ERR_*, add TRACE_ERR_UNSUPPORTED and
shuffle which error was returned where. Document their new usages.

Closes: #13

Also, fix the 802.1q definitions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcapfile.c

    r114b8d6 r91db67b  
    102102               
    103103                if (swapl(libtrace,DATA(libtrace)->header.magic_number) != 0xa1b2c3d4) {
    104                         trace_set_err(libtrace,TRACE_ERR_BAD_PACKET,"Not a pcap tracefile\n");
     104                        trace_set_err(libtrace,TRACE_ERR_INIT_FAILED,"Not a pcap tracefile\n");
    105105                        return -1; /* Not a pcap file */
    106106                }
     
    108108                if (swaps(libtrace,DATA(libtrace)->header.version_major)!=2
    109109                        && swaps(libtrace,DATA(libtrace)->header.version_minor)!=4) {
    110                         trace_set_err(libtrace,TRACE_ERR_BAD_PACKET,"Unknown pcap tracefile version %d.%d\n",
     110                        trace_set_err(libtrace,TRACE_ERR_INIT_FAILED,"Unknown pcap tracefile version %d.%d\n",
    111111                                        swaps(libtrace,
    112112                                                DATA(libtrace)->header.version_major),
Note: See TracChangeset for help on using the changeset viewer.