Changeset 52f8fc2 for lib/libtrace.h


Ignore:
Timestamp:
02/23/06 13:14:32 (16 years ago)
Author:
Perry Lorier <perry@…>
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:
8ea5b38
Parents:
aa62105
Message:

Cleanup some uses of packet->trace where the trace is already available!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h

    r91c9552 r52f8fc2  
    718718 * @author Perry Lorier
    719719 * @note Due to this being a header capture, or anonymisation, this may not
    720  * be the same size as the original packet.  See get_wire_length() for the original
    721  * size of the packet.
     720 * be the same size as the original packet.  See get_wire_length() for the
     721 * original size of the packet.
    722722 * @note This can (and often is) different for different packets in a trace!
    723  * @par
    724  *  This is sometimes called the "snaplen".
     723 * @note This is sometimes called the "snaplen".
     724 * @note The return size refers to the network-level payload of the packet and
     725 * does not include any capture headers. For example, an Ethernet packet with
     726 * an empty TCP packet will return sizeof(ethernet_header) + sizeof(ip_header)
     727 * + sizeof(tcp_header).
    725728 */
    726729SIMPLE_FUNCTION
     
    730733 * @param packet        the packet opaque pointer
    731734 * @return the size of the packet as it was on the wire.
    732  * @author Perry Lorier
    733  * @author Daniel Lawson
    734735 * @note Due to the trace being a header capture, or anonymisation this may
    735736 * not be the same as the Capture Len.
Note: See TracChangeset for help on using the changeset viewer.