source: lib/protocols.h @ e696e87

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

Split the protocol API's up into seperate files

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[a81d2fc]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/* pkt meta headers */
13void *trace_get_payload_from_linux_sll(const void *link,
14                uint16_t *type, uint32_t *remaining) ;
15void *trace_get_payload_from_prism (const void *link,
16                libtrace_linktype_t *type, uint32_t *remaining);
17void *trace_get_payload_from_radiotap (const void *link, 
18                libtrace_linktype_t *type, uint32_t *remaining);
19void *trace_get_payload_from_pflog(void *link,
20                uint16_t *type, uint32_t *remaining);
21
22/* l2 headers */
23void *trace_get_mpls_payload_from_ethernet_payload(void *ethernet,
24                uint16_t *type, uint32_t *remaining);
25void *trace_get_payload_from_ethernet(void *ethernet, 
26                uint16_t *type,
27                uint32_t *remaining);
28/* l3 definitions */
29struct ports_t {
30        uint16_t src;
31        uint16_t dst;
32};
33
34
Note: See TracBrowser for help on using the repository browser.