WAND Trace processing  4.0.5
format_helper.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2007-2016 The University of Waikato, Hamilton, New Zealand.
4  * All rights reserved.
5  *
6  * This file is part of libtrace.
7  *
8  * This code has been developed by the University of Waikato WAND
9  * research group. For further information please see http://www.wand.net.nz/
10  *
11  * libtrace is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License as published by
13  * the Free Software Foundation; either version 3 of the License, or
14  * (at your option) any later version.
15  *
16  * libtrace is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Lesser General Public License for more details.
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * along with this program. If not, see <http://www.gnu.org/licenses/>.
23  *
24  *
25  */
26 #ifndef FORMAT_HELPER_H
27 #define FORMAT_HELPER_H
28 #include "common.h"
29 #include "wandio.h"
30 
54 
66 
73 io_t *trace_open_file(libtrace_t *libtrace);
74 
85 iow_t *trace_open_file_out(libtrace_out_t *libtrace,
86  int compress_type,
87  int level,
88  int filemode);
89 
90 
102 
103 
104 
105 #endif /* FORMAT_HELPER_H */
libtrace_direction_t
Trace directions.
Definition: libtrace.h:583
struct libtrace_eventobj_t trace_event_trace(libtrace_t *trace, libtrace_packet_t *packet)
Generic event function for a offline trace file.
Definition: format_helper.c:125
A libtrace input trace.
Definition: libtrace_int.h:306
iow_t * trace_open_file_out(libtrace_out_t *libtrace, int compress_type, int level, int filemode)
Opens an output trace file for writing.
Definition: format_helper.c:255
libtrace_direction_t pcap_get_direction(const libtrace_packet_t *packet)
Attempts to determine the direction for a pcap (or pcapng) packet.
Definition: format_helper.c:339
The libtrace packet structure.
Definition: libtrace.h:543
Structure returned by libtrace_event explaining what the current event is.
Definition: libtrace.h:1870
io_t * trace_open_file(libtrace_t *libtrace)
Opens an input trace file for reading.
Definition: format_helper.c:240
A libtrace output trace.
Definition: libtrace_int.h:407
struct libtrace_eventobj_t trace_event_device(libtrace_t *trace, libtrace_packet_t *packet)
Generic event function for a live capture device.
Definition: format_helper.c:62