Changes between Version 1 and Version 2 of PortingToLibtrace3


Ignore:
Timestamp:
06/09/06 16:47:44 (15 years ago)
Author:
perry
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PortingToLibtrace3

    v1 v2  
    11== Major API Changes ==
    2 There are some changes necessary to software to upgrade from libtrace2 to libtrace3.  Where ever possible we've tried to make these cause a compile warning (or error), or cause an assertion failure the first time they are called.
     2There are some changes necessary to software to upgrade from libtrace2 to libtrace3.  Wherever possible we've tried to make these cause a compile warning (or error), or cause an assertion failure the first time they are called.
    33
    44=== Packets ===
     
    5656trace_bpf_setfilter() was renamed trace_create_filter() and trace_bpf_filter() was renamed trace_apply_filter(), and trace_destroy_filter() was created to release the memory used by filters.
    5757
    58 This change was made to keep the general naming convention of trace_create_''type''() and trace_destroy_''type''().  The arguments and return time are identical to the old libtrace2 versions.
     58This change was made to keep the general naming convention of trace_create_''type''() and trace_destroy_''type''().  The arguments and return type are identical to the old libtrace2 versions.
    5959
    6060=== Protocol decodes ===
    61 trace_get_''something''_from_''something''() functions used to take a pointer that was set to the number of bytes skipped by this protocol.  This has been changed to be the number of bytes remaining in the packet.  This variable is either set to NULL if you know you have enough space.  If it's not NULL it's the number of captured bytes remaining in the packet from the input pointer, and will be updated to be the number of bytes remaining after the header was skipped.
     61trace_get_''something''_from_''something''() functions used to take a pointer that was set to the number of bytes skipped by this protocol.  This has been changed to be the number of bytes remaining in the packet.  This variable can be set to NULL if you know you have enough space.  If it's not NULL it's the number of captured bytes remaining in the packet from the input pointer, and will be updated to be the number of bytes remaining after the header was skipped.
    6262
    6363=== Avoid IPv4isms ===