nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 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 | * This program is free software; you can redistribute it and/or |
||
9 | * modify it under the terms of the GNU General Public License |
||
10 | * as published by the Free Software Foundation; either version 2 |
||
11 | * of the License, or (at your option) any later version. |
||
12 | * |
||
13 | * This program is distributed in the hope that it will be useful, |
||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
16 | * GNU General Public License for more details. |
||
17 | * |
||
18 | * You should have received a copy of the GNU General Public License |
||
19 | * along with this program; if not, write to the Free Software |
||
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
||
21 | */ |
||
22 | |||
23 | #ifndef __RINGBUFFER_H__ |
||
24 | #define __RINGBUFFER_H__ |
||
25 | |||
26 | #include <stdio.h> |
||
27 | #include "wiretap/wtap.h" |
||
28 | |||
29 | #define RINGBUFFER_UNLIMITED_FILES 0 |
||
30 | /* Minimum number of ringbuffer files */ |
||
31 | #define RINGBUFFER_MIN_NUM_FILES 0 |
||
32 | /* Maximum number of ringbuffer files */ |
||
33 | /* Avoid crashes on very large numbers. Should be a power of 10 */ |
||
34 | #define RINGBUFFER_MAX_NUM_FILES 100000 |
||
35 | /* Maximum number for FAT filesystems */ |
||
36 | #define RINGBUFFER_WARN_NUM_FILES 65535 |
||
37 | |||
38 | int ringbuf_init(const char *capture_name, guint num_files, gboolean group_read_access); |
||
39 | const gchar *ringbuf_current_filename(void); |
||
40 | FILE *ringbuf_init_libpcap_fdopen(int *err); |
||
41 | gboolean ringbuf_switch_file(FILE **pdh, gchar **save_file, int *save_file_fd, |
||
42 | int *err); |
||
43 | gboolean ringbuf_libpcap_dump_close(gchar **save_file, int *err); |
||
44 | void ringbuf_free(void); |
||
45 | void ringbuf_error_cleanup(void); |
||
46 | |||
47 | #endif /* ringbuffer.h */ |
||
48 | |||
49 | /* |
||
50 | * Editor modelines - http://www.wireshark.org/tools/modelines.html |
||
51 | * |
||
52 | * Local Variables: |
||
53 | * c-basic-offset: 2 |
||
54 | * tab-width: 8 |
||
55 | * indent-tabs-mode: nil |
||
56 | * End: |
||
57 | * |
||
58 | * vi: set shiftwidth=2 tabstop=8 expandtab: |
||
59 | * :indentSize=2:tabSize=8:noTabs=true: |
||
60 | */ |