Changes between Version 2 and Version 3 of ParsingUnknownHeaders
- Timestamp:
- 09/05/06 17:25:05 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ParsingUnknownHeaders
v2 v3 1 If you are trying to use libtrace to understand a header which libtrace doesn't natively support then you can use {{{getlink}} to get a pointer to the link layer (or some suitable other header), and then use {{{trace_get_payload_from_}}}''header'' to skip past any extra headers you might need to (for example vlan headers), then take the result and cast it to a structure representing your prefered header.1 If you are trying to use libtrace to understand a header which libtrace doesn't natively support then you can use {{{getlink}}} to get a pointer to the link layer (or some suitable other header), and then use {{{trace_get_payload_from_}}}''header'' to skip past any extra headers you might need to (for example vlan headers), then take the result and cast it to a structure representing your prefered header. 2 2