Changes between Version 2 and Version 3 of AddingNewLinktype
- Timestamp:
- 09/06/06 10:06:38 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AddingNewLinktype
v2 v3 10 10 * Add your new TRACE_TYPE to {{{libtrace_to_erf_type}}}/{{{erf_type_to_libtrace}}} 11 11 * If your linktype is supported by the Linux kernel: 12 * Add your linktype to linuxnative_get_link_type 12 * Add your linktype to linuxnative_get_link_type. ARPHRD's are defined in {{{<net/if_arp.h>}}}. If your linktype is too new to exist in that header, consider having 13 {{{ 14 #ifndef ARPHRD_foo 15 #define ARPHRD_foo 1337 16 #endif 17 }}} 13 18 1. Add a structure to parse your linktype to {{{libtrace.h}}} with a name "libtrace_''yourlinktype''_t" 14 19 1. Add trace_get_payload_from_''yourlinktype'' to protocols.c, and add code to {{{trace_get_payload_from_link()}}} to understand your linktype.