source: lib/erftypes.h @ c7021d9

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since c7021d9 was 204872da, checked in by Shane Alcock <salcock@…>, 10 years ago
  • Fixed annoying warnings caused by ERF types being defined multiple times, which happens if you build libtrace with DAG support
  • Property mode set to 100644
File size: 4.2 KB
RevLine 
[2c743a7]1/*
2 * This file is part of libtrace
3 *
4 * Copyright (c) 2007,2008,2009,2010 The University of Waikato, Hamilton,
5 * New Zealand.
6 *
7 * Authors: Daniel Lawson
8 *          Perry Lorier
9 *          Shane Alcock
10 *         
11 * All rights reserved.
12 *
13 * This code has been developed by the University of Waikato WAND
14 * research group. For further information please see http://www.wand.net.nz/
15 *
16 * libtrace is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 2 of the License, or
19 * (at your option) any later version.
20 *
21 * libtrace is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24 * GNU General Public License for more details.
25 *
26 * You should have received a copy of the GNU General Public License
27 * along with libtrace; if not, write to the Free Software
28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
29 *
30 * $Id$
31 *
32 */
33
[2faa57e]34#ifndef _ERFTYPES_H_
35#define _ERFTYPES_H_
36
[2c743a7]37/** @file
38 *
39 * @brief Header file containing all the possible GPP record types
40 *
41 * @author Daniel Lawson
42 * @author Perry Lorier
43 * @author Shane Alcock
44 *
45 * @version $Id$
46 */
47
48/* GPP record type defines - these can indicate the header that immediately
49 * follows the ERF header and/or an adjustment to the layout of the ERF header
50 * itself, e.g. due to the use of Coloring.
51 *
52 * NOTE: "Color" refers to the concept of marking packets based on matching
53 * a particular filter or classification */
54
[204872da]55#ifndef TYPE_LEGACY
[2c743a7]56#define TYPE_LEGACY             0       /**< Legacy */
[204872da]57#endif
58
59#ifndef TYPE_HDLC_POS
[2c743a7]60#define TYPE_HDLC_POS           1       /**< PoS with HDLC framing */
[204872da]61#endif
62
63#ifndef TYPE_ETH
[2c743a7]64#define TYPE_ETH                2       /**< Ethernet */
[204872da]65#endif
66
67#ifndef TYPE_ATM
[2c743a7]68#define TYPE_ATM                3       /**< ATM Cell */
[204872da]69#endif
70
71#ifndef TYPE_AAL5
[2c743a7]72#define TYPE_AAL5               4       /**< AAL5 Frame */
[204872da]73#endif
74
75#ifndef TYPE_MC_HDLC
[2c743a7]76#define TYPE_MC_HDLC            5       /**< Multi-channel HDLC */
[204872da]77#endif
78
79#ifndef TYPE_MC_RAW
[2c743a7]80#define TYPE_MC_RAW             6       /**< Multi-channel Raw link record */
[204872da]81#endif
82
83#ifndef TYPE_MC_ATM
[2c743a7]84#define TYPE_MC_ATM             7       /**< Multi-channel ATM Cell */
[204872da]85#endif
86
87#ifndef TYPE_MC_RAW_CHANNEL
[2c743a7]88#define TYPE_MC_RAW_CHANNEL     8       /**< Multi-channel Raw link data */
[204872da]89#endif
90
91#ifndef TYPE_MC_AAL5
[2c743a7]92#define TYPE_MC_AAL5            9       /**< Multi-channel AAL5 */
[204872da]93#endif
[2c743a7]94
95/** PoS with HDLC framing and classification information in the loss counter
96 *  field */
[204872da]97#ifndef TYPE_COLOR_HDLC_POS
[2c743a7]98#define TYPE_COLOR_HDLC_POS     10     
[204872da]99#endif
[2c743a7]100
101/** Ethernet with classification information in the loss counter field */
[204872da]102#ifndef TYPE_COLOR_ETH
[2faa57e]103#define TYPE_COLOR_ETH          11
[204872da]104#endif
[2c743a7]105
106/** Multi-channel AAL2 */
[204872da]107#ifndef TYPE_MC_AAL2
[2faa57e]108#define TYPE_MC_AAL2            12
[204872da]109#endif
[2c743a7]110
111/** IP counter ERF record */
[204872da]112#ifndef TYPE_IP_COUNTER
[2faa57e]113#define TYPE_IP_COUNTER         13
[204872da]114#endif
[2c743a7]115
116/** TCP flow counter ERF record */
[204872da]117#ifndef TYPE_TCP_FLOW_COUNTER
[2faa57e]118#define TYPE_TCP_FLOW_COUNTER   14
[204872da]119#endif
[2c743a7]120
121/** PoS with HDLC framing with DSM color information in the loss counter field*/
[204872da]122#ifndef TYPE_DSM_COLOR_HDLC_POS
[2faa57e]123#define TYPE_DSM_COLOR_HDLC_POS 15
[204872da]124#endif
[2c743a7]125
126/** Ethernet with DSM color information in the loss counter field */
[204872da]127#ifndef TYPE_DSM_COLOR_ETH
[2faa57e]128#define TYPE_DSM_COLOR_ETH      16
[204872da]129#endif
[2c743a7]130
131/** Multi-channel HDLC with classification information in the loss counter
132 *  field */
[204872da]133#ifndef TYPE_COLOR_MC_HDLC_POS
[2faa57e]134#define TYPE_COLOR_MC_HDLC_POS  17
[204872da]135#endif
[2c743a7]136
137/** AAL2 Frame */
[204872da]138#ifndef TYPE_AAL2
[2faa57e]139#define TYPE_AAL2               18
[204872da]140#endif
[2faa57e]141
[2c743a7]142/** Colored PoS HDLC record with Hash load balancing */
[204872da]143#ifndef TYPE_COLOR_HASH_POS
[2c743a7]144#define TYPE_COLOR_HASH_POS     19
[204872da]145#endif
[2c743a7]146
147/** Colored Ethernet with Hash load balancing */
[204872da]148#ifndef TYPE_COLOR_HASH_ETH
[2c743a7]149#define TYPE_COLOR_HASH_ETH     20
[204872da]150#endif
[2c743a7]151
152/** Infiniband */
[204872da]153#ifndef TYPE_INFINIBAND
[2c743a7]154#define TYPE_INFINIBAND         21
[204872da]155#endif
[2c743a7]156
157/** IPv4 */
[204872da]158#ifndef TYPE_IPV4
[2c743a7]159#define TYPE_IPV4               22
[204872da]160#endif
[2c743a7]161
162/** IPv6 */
[204872da]163#ifndef TYPE_IPV6
[2c743a7]164#define TYPE_IPV6               23
[204872da]165#endif
[2c743a7]166
167/** Raw link data, usually SONET or SDH */
[204872da]168#ifndef TYPE_RAW_LINK
[2c743a7]169#define TYPE_RAW_LINK           24
[204872da]170#endif
[2c743a7]171
172/** Padding record */
[204872da]173#ifndef TYPE_PAD
[2c743a7]174#define TYPE_PAD                48
[2faa57e]175#endif
[204872da]176
177
178#endif /* _ERFTYPES_H_ */
Note: See TracBrowser for help on using the repository browser.