3 * Copyright 2015, Dario Lombardo <lomato@gmail.com>
5 * SPDX-License-Identifier: GPL-2.0+
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
24 * For now, go for 50MB.
26 #define MAX_FILE_SIZE (50*1024*1024)
28 wtap_open_return_val json_open(wtap *wth, int *err, gchar **err_info);
33 * Editor modelines - http://www.wireshark.org/tools/modelines.html
38 * indent-tabs-mode: nil
41 * vi: set shiftwidth=4 tabstop=8 expandtab:
42 * :indentSize=4:tabSize=8:noTabs=true: