source: lib/protocols.h @ 44c9ba9

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 44c9ba9 was e46cb80, checked in by Perry Lorier <perry@…>, 12 years ago

Make sure appropriate things are included

  • Property mode set to 100644
File size: 847 bytes
Line 
1/* These are protocol decoders that haven't yet seen enough use to consider
2 * their API stable enough to move into libtrace.h where they probably belong
3 *
4 * These API's are not stable enough to be exported from libtrace and used
5 * by user code
6 *
7 * These are generally used by the next higher level, so really we should
8 * be defining API's that mean that these don't need to be known by the
9 * higher level.
10 */
11
12#include "libtrace.h"
13/* pkt meta headers */
14
15/* l2 headers */
16void *trace_get_mpls_payload_from_ethernet_payload(void *ethernet,
17                uint16_t *type, uint32_t *remaining);
18void *trace_get_payload_from_ethernet(void *ethernet, 
19                uint16_t *type,
20                uint32_t *remaining);
21void *trace_get_payload_from_pppoe(void *link, uint16_t *type, 
22                uint32_t *remaining);
23/* l3 definitions */
24struct ports_t {
25        uint16_t src;
26        uint16_t dst;
27};
28
29
Note: See TracBrowser for help on using the repository browser.