Changeset 80a2e99 for lib/libtrace.h


Ignore:
Timestamp:
11/11/04 10:54:36 (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:
a48d246
Parents:
533d7c1
Message:

set_direction
truncate_packet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h

    r678048a r80a2e99  
    347347uint8_t *trace_get_source_mac(struct libtrace_packet_t *packet);
    348348
     349/** Truncate the packet at the suggested length
     350 * @param packet        the packet opaque pointer
     351 * @param len           the new length of the packet
     352 * @returns the new length of the packet, or the original length of the
     353 * packet if unchanged
     354 * @author Daniel Lawson
     355 */
     356size_t trace_truncate_packet(struct libtrace_packet_t *packet, size_t size);
     357
     358/** Set the direction flag, if it has one
     359 * @param packet        the packet opaque pointer
     360 * @param direction     the new direction (0,1,2,3)
     361 * @returns a signed value containing the direction flag, or -1 if this is not supported
     362 * @author Daniel Lawson
     363 */
     364int8_t trace_set_direction(struct libtrace_packet_t *packet, int8_t direction);
     365
    349366/** Get the direction flag, if it has one
    350367 * @param packet        the packet opaque pointer
Note: See TracChangeset for help on using the changeset viewer.