Changes between Version 1 and Version 2 of ParsingUnknownHeaders
- Timestamp:
- 09/05/06 17:24:52 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ParsingUnknownHeaders
v1 v2 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
