Changeset ef90843 for lib/trace.c


Ignore:
Timestamp:
10/21/05 10:43:29 (16 years ago)
Author:
Shane Alcock <salcock@…>
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:
0675ea1
Parents:
194d49b
Message:

Updated documentation for trace_get_capture_length
Corrected error where erfhdr.rlen was being set to trace_get_capture_length
in erf_write_packet
Corrected erf_get_capture_length to not include capture format headers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    rc95b923 ref90843  
    952952
    953953/* Get the size of the packet in the trace
    954  * @param packet the packet opaque pointer
     954 * @param packet        the packet opaque pointer
    955955 * @returns the size of the packet in the trace
    956956 * @author Perry Lorier
     957 * @note The return size refers to the network-level payload of the packet and
     958 * does not include any capture headers. For example, an Ethernet packet with
     959 * an empty TCP packet will return sizeof(ethernet_header) + sizeof(ip_header)
     960 * + sizeof(tcp_header).
    957961 * @note Due to this being a header capture, or anonymisation, this may not
    958962 * be the same size as the original packet.  See trace_get_wire_length() for the
    959963 * original size of the packet.
    960964 * @note This can (and often is) different for different packets in a trace!
    961  * @par
    962  *  This is sometimes called the "snaplen".
     965 * @note This is sometimes called the "snaplen".
    963966 */
    964967int trace_get_capture_length(const struct libtrace_packet_t *packet) {
Note: See TracChangeset for help on using the changeset viewer.