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
|
/*
* 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 1507 2010-02-03 02:12:57Z 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 1507 2010-02-03 02:12:57Z 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 */
#define TYPE_LEGACY 0 /**< Legacy */
#define TYPE_HDLC_POS 1 /**< PoS with HDLC framing */
#define TYPE_ETH 2 /**< Ethernet */
#define TYPE_ATM 3 /**< ATM Cell */
#define TYPE_AAL5 4 /**< AAL5 Frame */
#define TYPE_MC_HDLC 5 /**< Multi-channel HDLC */
#define TYPE_MC_RAW 6 /**< Multi-channel Raw link record */
#define TYPE_MC_ATM 7 /**< Multi-channel ATM Cell */
#define TYPE_MC_RAW_CHANNEL 8 /**< Multi-channel Raw link data */
#define TYPE_MC_AAL5 9 /**< Multi-channel AAL5 */
/** PoS with HDLC framing and classification information in the loss counter
* field */
#define TYPE_COLOR_HDLC_POS 10
/** Ethernet with classification information in the loss counter field */
#define TYPE_COLOR_ETH 11
/** Multi-channel AAL2 */
#define TYPE_MC_AAL2 12
/** IP counter ERF record */
#define TYPE_IP_COUNTER 13
/** TCP flow counter ERF record */
#define TYPE_TCP_FLOW_COUNTER 14
/** PoS with HDLC framing with DSM color information in the loss counter field*/
#define TYPE_DSM_COLOR_HDLC_POS 15
/** Ethernet with DSM color information in the loss counter field */
#define TYPE_DSM_COLOR_ETH 16
/** Multi-channel HDLC with classification information in the loss counter
* field */
#define TYPE_COLOR_MC_HDLC_POS 17
/** AAL2 Frame */
#define TYPE_AAL2 18
/** Colored PoS HDLC record with Hash load balancing */
#define TYPE_COLOR_HASH_POS 19
/** Colored Ethernet with Hash load balancing */
#define TYPE_COLOR_HASH_ETH 20
/** Infiniband */
#define TYPE_INFINIBAND 21
/** IPv4 */
#define TYPE_IPV4 22
/** IPv6 */
#define TYPE_IPV6 23
/** Raw link data, usually SONET or SDH */
#define TYPE_RAW_LINK 24
/** Padding record */
#define TYPE_PAD 48
#endif
|