Changeset 3a14f3b for lib/libtrace.h.in


Ignore:
Timestamp:
09/14/07 16:05:43 (14 years ago)
Author:
Scott Raynel <smr26@…>
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:
a81d2fc
Parents:
4c1302b
Message:

Allow libtrace applications to create filters based on pre-compiled BPF
bytecode as well as filterstrings. See trace_create_filter_from_bytecode()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    r4c1302b r3a14f3b  
    15281528libtrace_filter_t *trace_create_filter(const char *filterstring);
    15291529
    1530 /** apply a BPF filter
     1530/** Setup a BPF filter based on pre-compiled byte-code.
     1531 * @param bf_insns      A pointer to the start of the byte-code
     1532 * @param bf_len        The number of BPF instructions 
     1533 * @returns             an opaque pointer to a libtrace_filter_t object
     1534 * @note                The supplied byte-code is not checked for correctness.
     1535 * @author              Scott Raynel
     1536 */
     1537DLLEXPORT libtrace_filter_t *
     1538trace_create_filter_from_bytecode(void *bf_insns, unsigned int bf_len);
     1539
     1540/** Apply a BPF filter to a packet
    15311541 * @param filter        the filter opaque pointer
    15321542 * @param packet        the packet opaque pointer
     
    15411551                const libtrace_packet_t *packet);
    15421552
    1543 /** destory of BPF filter
     1553/** Destroy a BPF filter
    15441554 * @param filter        the filter opaque pointer
    15451555 * Deallocate all the resources associated with a BPF filter
Note: See TracChangeset for help on using the changeset viewer.