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