Changeset c681e86 for lib/libtrace.h
- Timestamp:
- 06/22/04 17:23:07 (17 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/libtrace.h
r2c060e3 rc681e86 261 261 * @author Perry Lorier 262 262 * @note Due to this being a header capture, or anonymisation, this may not 263 * be the same size as the original packet. See get Len() for the original263 * be the same size as the original packet. See get_wire_length() for the original 264 264 * size of the packet. 265 265 * @note This can (and often is) different for different packets in a trace! … … 305 305 struct libtrace_t *libtrace, 306 306 void *buffer, 307 int buflen); 307 int buflen); 308 308 309 309 /** Get the destination MAC addres … … 347 347 void *buffer, int *size); 348 348 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 */ 355 void 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 */ 364 int libtrace_bpf_filter(struct libtrace_t *trace, 365 void *buffer, 366 int buflen); 367 368 349 369 #endif // _LIBTRACE_H_
Note: See TracChangeset
for help on using the changeset viewer.