2021-11-30 02:59:23 +00:00
|
|
|
/** @file
|
1999-09-11 04:53:26 +00:00
|
|
|
*
|
|
|
|
* Wiretap Library
|
2001-11-13 23:55:44 +00:00
|
|
|
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
|
2002-08-28 20:30:45 +00:00
|
|
|
*
|
2018-02-07 11:26:45 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
1999-09-11 04:53:26 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2009-06-15 18:56:46 +00:00
|
|
|
#ifndef __ASCENDTEXT_H__
|
|
|
|
#define __ASCENDTEXT_H__
|
2011-06-04 21:20:57 +00:00
|
|
|
#include <glib.h>
|
2000-08-11 13:37:21 +00:00
|
|
|
|
2016-05-02 01:25:43 +00:00
|
|
|
/*
|
Allow bigger snapshot lengths for D-Bus captures.
Use WTAP_MAX_PACKET_SIZE_STANDARD, set to 256KB, for everything except
for D-Bus captures. Use WTAP_MAX_PACKET_SIZE_DBUS, set to 128MB, for
them, because that's the largest possible D-Bus message size. See
https://bugs.freedesktop.org/show_bug.cgi?id=100220
for an example of the problems caused by limiting the snapshot length to
256KB for D-Bus.
Have a snapshot length of 0 in a capture_file structure mean "there is
no snapshot length for the file"; we don't need the has_snap field in
that case, a value of 0 mean "no, we don't have a snapshot length".
In dumpcap, start out with a pipe buffer size of 2KB, and grow it as
necessary. When checking for a too-big packet from a pipe, check
against the appropriate maximum - 128MB for DLT_DBUS, 256KB for
everything else.
Change-Id: Ib2ce7a0cf37b971fbc0318024fd011e18add8b20
Reviewed-on: https://code.wireshark.org/review/21952
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2017-06-05 01:58:40 +00:00
|
|
|
* ASCEND_MAX_PKT_LEN is < WTAP_MAX_PACKET_SIZE_STANDARD, so we don't need to
|
2016-05-02 01:25:43 +00:00
|
|
|
* check the packet length.
|
|
|
|
*/
|
1999-09-11 04:53:26 +00:00
|
|
|
#define ASCEND_MAX_DATA_ROWS 8
|
|
|
|
#define ASCEND_MAX_DATA_COLS 16
|
|
|
|
#define ASCEND_MAX_PKT_LEN (ASCEND_MAX_DATA_ROWS * ASCEND_MAX_DATA_COLS)
|
|
|
|
|
2014-10-10 01:04:16 +00:00
|
|
|
wtap_open_return_val ascend_open(wtap *wth, int *err, gchar **err_info);
|
2000-08-11 13:37:21 +00:00
|
|
|
|
|
|
|
#endif
|