Changes between Version 2 and Version 3 of AddingNewLinktype


Ignore:
Timestamp:
09/06/06 10:06:38 (14 years ago)
Author:
perry
Comment:

discuss ARPHRD's

Legend:

Unmodified
Added
Removed
Modified
  • AddingNewLinktype

    v2 v3  
    1010   * Add your new TRACE_TYPE to {{{libtrace_to_erf_type}}}/{{{erf_type_to_libtrace}}}
    1111  * 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}}}
    1318 1. Add a structure to parse your linktype to {{{libtrace.h}}} with a name "libtrace_''yourlinktype''_t"
    1419 1. Add trace_get_payload_from_''yourlinktype'' to protocols.c, and add code to {{{trace_get_payload_from_link()}}} to understand your linktype.