Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

/home/wireshark/builders/wireshark-master/ubuntu-16.04-x64/build/ringbuffer.h
1 /* ringbuffer.h
2 * Definitions for capture ringbuffer files
3 *
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
7 *
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
10
11 #ifndef __RINGBUFFER_H__
12 #define __RINGBUFFER_H__
13
14 #include <stdio.h>
15 #include "wiretap/wtap.h"
16
17 #define RINGBUFFER_UNLIMITED_FILES 0
18 /* Minimum number of ringbuffer files */
19 #define RINGBUFFER_MIN_NUM_FILES 0
20 /* Maximum number of ringbuffer files */
21 /* Avoid crashes on very large numbers. Should be a power of 10 */
22 #define RINGBUFFER_MAX_NUM_FILES 100000
23 /* Maximum number for FAT filesystems */
24 #define RINGBUFFER_WARN_NUM_FILES 65535
25
26 int ringbuf_init(const char *capture_name, guint num_files, gboolean group_read_access);
27 const gchar *ringbuf_current_filename(void);
28 FILE *ringbuf_init_libpcap_fdopen(int *err);
29 gboolean ringbuf_switch_file(FILE **pdh, gchar **save_file, int *save_file_fd,
30 int *err);
31 gboolean ringbuf_libpcap_dump_close(gchar **save_file, int *err);
32 void ringbuf_free(void);
33 void ringbuf_error_cleanup(void);
34
35 #endif /* ringbuffer.h */
36
37 /*
38 * Editor modelines - http://www.wireshark.org/tools/modelines.html
39 *
40 * Local Variables:
41 * c-basic-offset: 2
42 * tab-width: 8
43 * indent-tabs-mode: nil
44 * End:
45 *
46 * vi: set shiftwidth=2 tabstop=8 expandtab:
47 * :indentSize=2:tabSize=8:noTabs=true:
48 */