source: lib/format_erf.h @ 17f954f

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 17f954f was c0fcc14, checked in by Shane Alcock <salcock@…>, 12 years ago
  • Fixed lack of support for $Id$ in format_erf.h
  • Property mode set to 100644
File size: 2.1 KB
Line 
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
34#ifndef FORMAT_ERF_H
35#define FORMAT_ERF_H
36
37#include "libtrace.h"
38
39/** @file
40 *
41 * @brief Header file defining functions that apply to all libtrace formats
42 * that use the ERF record format, e.g. ERF, DAG 2.4, DAG 2.5
43 *
44 * @author Daniel Lawson
45 * @author Perry Lorier
46 * @author Shane Alcock
47 *
48 * @version $Id$
49 *
50 * Not too much detail required with these functions - this header file exists
51 * solely to ensure that we don't have to duplicate the same code across
52 * multiple format modules.
53 */
54
55int erf_get_framing_length(const libtrace_packet_t *packet);
56libtrace_linktype_t erf_get_link_type(const libtrace_packet_t *packet);
57libtrace_direction_t erf_get_direction(const libtrace_packet_t *packet);
58libtrace_direction_t erf_set_direction(libtrace_packet_t *packet, libtrace_direction_t direction);
59uint64_t erf_get_erf_timestamp(const libtrace_packet_t *packet);
60int erf_get_capture_length(const libtrace_packet_t *packet);
61int erf_get_wire_length(const libtrace_packet_t *packet);
62size_t erf_set_capture_length(libtrace_packet_t *packet, size_t size);
63
64#endif
Note: See TracBrowser for help on using the repository browser.