Changes between Version 1 and Version 2 of PortingToLibtrace3
- Timestamp:
- 06/09/06 16:47:44 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PortingToLibtrace3
v1 v2 1 1 == 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.2 There 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. 3 3 4 4 === Packets === … … 56 56 trace_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. 57 57 58 This change was made to keep the general naming convention of trace_create_''type''() and trace_destroy_''type''(). The arguments and return t ime are identical to the old libtrace2 versions.58 This 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. 59 59 60 60 === 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 eitherset 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.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 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. 62 62 63 63 === Avoid IPv4isms ===