Changeset 411666a for lib/libtrace.h.in


Ignore:
Timestamp:
12/19/07 11:17:58 (14 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:
a78665c
Parents:
287b2b4
Message:
  • Fixed get_payload_from_X functions not returning NULL in cases where they have a full X header but no subsequent payload (i.e. remaining would be exactly 0 upon return)
  • trace_get_layer3 should not be a SIMPLE_FUNCTION anymore
  • trace_get_ip now checks that at least a full IPv4 header is present
  • Calls to payload_from_ethernet functions inside trace_get_layer3 will now update remaining correctly
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    r50bbce8 r411666a  
    11281128 * bytes after the pointer returned.
    11291129 */
    1130 DLLEXPORT SIMPLE_FUNCTION
     1130DLLEXPORT
    11311131void *trace_get_layer3(const libtrace_packet_t *packet,
    11321132                uint16_t *ethertype, uint32_t *remaining);
Note: See TracChangeset for help on using the changeset viewer.