00001 /* 00002 * This file is part of libtrace 00003 * 00004 * Copyright (c) 2007,2008,2009,2010 The University of Waikato, Hamilton, 00005 * New Zealand. 00006 * 00007 * Authors: Daniel Lawson 00008 * Perry Lorier 00009 * Shane Alcock 00010 * 00011 * All rights reserved. 00012 * 00013 * This code has been developed by the University of Waikato WAND 00014 * research group. For further information please see http://www.wand.net.nz/ 00015 * 00016 * libtrace is free software; you can redistribute it and/or modify 00017 * it under the terms of the GNU General Public License as published by 00018 * the Free Software Foundation; either version 2 of the License, or 00019 * (at your option) any later version. 00020 * 00021 * libtrace is distributed in the hope that it will be useful, 00022 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00023 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00024 * GNU General Public License for more details. 00025 * 00026 * You should have received a copy of the GNU General Public License 00027 * along with libtrace; if not, write to the Free Software 00028 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00029 * 00030 * $Id: daglegacy.h 1506 2010-02-03 01:29:43Z salcock $ 00031 * 00032 */ 00033 00034 #ifndef DAG_LEGACY_H 00035 #define DAG_LEGACY_H 00036 00052 typedef struct legacy_cell { 00053 uint64_t ts; 00054 uint32_t crc; 00055 } PACKED legacy_cell_t; 00056 00058 typedef struct legacy_ether { 00059 uint64_t ts; 00060 uint16_t wlen; 00061 } PACKED legacy_ether_t; 00062 00064 typedef struct legacy_pos { 00065 uint64_t ts; 00066 uint32_t slen; 00067 uint32_t wlen; 00068 } PACKED legacy_pos_t; 00069 00071 typedef struct atmhdr { 00072 uint32_t ts_fraction; 00073 uint32_t ts_sec; 00074 } PACKED atmhdr_t; 00075 00077 typedef struct legacy_nzix { 00078 uint32_t ts; 00080 uint32_t crc; 00081 uint32_t len; 00083 /* The padding has actually been placed in the middle of the IP 00084 * header - when we read in the packet, we will move various bits 00085 * of the packet around until the padding ends up here and the 00086 * IP header is undivided */ 00087 uint8_t pad[2]; 00088 } PACKED legacy_nzix_t; 00089 #endif