Wireshark
2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
wiretap
json.h
1
/* json.h
2
*
3
* Copyright 2015, Dario Lombardo <lomato@gmail.com>
4
*
5
* SPDX-License-Identifier: GPL-2.0-or-later
6
*
7
*/
8
9
#ifndef __JSON_H__
10
#define __JSON_H__
11
12
#include <glib.h>
13
14
#include "wtap.h"
15
16
/*
17
* Impose a not-too-large limit on the maximum file size, to avoid eating
18
* up 99% of the (address space, swap partition, disk space for swap/page
19
* files); if we were to return smaller chunks and let the dissector do
20
* reassembly, it would *still* have to allocate a buffer the size of
21
* the file, so it's not as if we'd neve try to allocate a buffer the
22
* size of the file.
23
*
24
* For now, go for 50MB.
25
*/
26
#define MAX_FILE_SIZE (50*1024*1024)
27
28
wtap_open_return_val json_open(
wtap
*wth,
int
*err, gchar **err_info);
29
30
#endif
31
32
/*
33
* Editor modelines - http://www.wireshark.org/tools/modelines.html
34
*
35
* Local variables:
36
* c-basic-offset: 4
37
* tab-width: 8
38
* indent-tabs-mode: nil
39
* End:
40
*
41
* vi: set shiftwidth=4 tabstop=8 expandtab:
42
* :indentSize=4:tabSize=8:noTabs=true:
43
*/
wtap
Definition:
wtap-int.h:34
Generated by
1.8.11