Changeset c5a22ec for lib/libtrace.h


Ignore:
Timestamp:
07/07/04 15:17:57 (17 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
72429bd
Parents:
abde7b5
Message:

changed bpf routines to use an opaque pointer to a filter datastructure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h

    rc681e86 rc5a22ec  
    3838struct libtrace_t;
    3939       
     40/** Opaque structure holding information about a bpf filter */
     41
     42struct libtrace_filter_t;
    4043/** Structure for dealing with IP packets */
    4144struct libtrace_ip
     
    348351
    349352/** setup a BPF filter
    350  * @param libtrace the libtrace opaque pointer
    351353 * @param filterstring a char * containing the bpf filter string
    352  * @returns null
    353  * @author Daniel Lawson
    354  */
    355 void libtrace_bpf_setfilter(struct libtrace_t *trace, char *filterstring);
     354 * @returns opaque pointer pointer to a libtrace_filter_t object
     355 * @author Daniel Lawson
     356 */
     357struct libtrace_filter_t *libtrace_bpf_setfilter(const char *filterstring);
    356358
    357359/** apply a BPF filter
    358360 * @param libtrace the libtrace opaque pointer
     361 * @param filter the filter opaque pointer
    359362 * @param buffer a pointer to a filled buffer
    360363 * @param buflen the length of the buffer
     
    362365 * @author Daniel Lawson
    363366 */
    364 int libtrace_bpf_filter(struct libtrace_t *trace,
     367int libtrace_bpf_filter(struct libtrace_t *trace,
     368                        struct libtrace_filter_t *filter,
    365369                        void *buffer,
    366370                        int buflen);
Note: See TracChangeset for help on using the changeset viewer.