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: protocols.h 1515 2010-02-05 03:56:48Z salcock $ 00031 * 00032 */ 00033 00034 00045 /* These are generally used by the next higher level, so really we should 00046 * be defining API's that mean that these don't need to be known by the 00047 * higher level. 00048 */ 00049 00050 #include "libtrace.h" 00051 /* pkt meta headers */ 00052 00053 /* l2 headers */ 00054 00078 void *trace_get_payload_from_ethernet(void *ethernet, 00079 uint16_t *type, 00080 uint32_t *remaining); 00081 00082 /* l3 definitions */ 00083 00086 struct ports_t { 00087 uint16_t src; 00088 uint16_t dst; 00089 }; 00090 00091