Changeset c681e86 for lib/libtrace.h


Ignore:
Timestamp:
06/22/04 17:23:07 (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:
a9d9fd6
Parents:
c792590
Message:

updated to allow bpf filters on arbitrary data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h

    r2c060e3 rc681e86  
    261261 * @author Perry Lorier
    262262 * @note Due to this being a header capture, or anonymisation, this may not
    263  * be the same size as the original packet.  See getLen() for the original
     263 * be the same size as the original packet.  See get_wire_length() for the original
    264264 * size of the packet.
    265265 * @note This can (and often is) different for different packets in a trace!
     
    305305                struct libtrace_t *libtrace,
    306306                void *buffer,
    307                 int buflen);
     307                int buflen);   
    308308
    309309/** Get the destination MAC addres
     
    347347                        void *buffer, int *size);
    348348
     349/** setup a BPF filter
     350 * @param libtrace the libtrace opaque pointer
     351 * @param filterstring a char * containing the bpf filter string
     352 * @returns null
     353 * @author Daniel Lawson
     354 */
     355void libtrace_bpf_setfilter(struct libtrace_t *trace, char *filterstring);
     356
     357/** apply a BPF filter
     358 * @param libtrace the libtrace opaque pointer
     359 * @param buffer a pointer to a filled buffer
     360 * @param buflen the length of the buffer
     361 * @returns the return value from bpf_filter
     362 * @author Daniel Lawson
     363 */
     364int libtrace_bpf_filter(struct libtrace_t *trace,
     365                        void *buffer,
     366                        int buflen);
     367
     368
    349369#endif // _LIBTRACE_H_
Note: See TracChangeset for help on using the changeset viewer.