Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet-tpkt.h
1/* packet-tpkt.h
2 *
3 * Routines for TPKT dissection
4 *
5 * Copyright 2000, Philips Electronics N.V.
6 * Andreas Sikkema <[email protected]>
7 *
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <[email protected]>
10 * Copyright 1998 Gerald Combs
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 */
14
15#include "ws_symbol_export.h"
16
17/*
18 * Check whether this could be a TPKT-encapsulated PDU.
19 * Returns -1 if it's not, and the PDU length from the TPKT header
20 * if it is.
21 *
22 * "min_len" is the minimum length of the PDU; the length field in the
23 * TPKT header must be at least "4+min_len" in order for this to be a
24 * valid TPKT PDU for the protocol in question.
25 */
26WS_DLL_PUBLIC int is_tpkt(tvbuff_t *tvb, int min_len);
27
28/*
29 * Dissect TPKT-encapsulated data in a TCP stream.
30 */
31WS_DLL_PUBLIC void dissect_tpkt_encap(tvbuff_t *tvb, packet_info *pinfo,
32 proto_tree *tree, bool desegment,
33 dissector_handle_t subdissector_handle);
34
35/*
36 * Check whether this could be a ASCII TPKT-encapsulated PDU.
37 * Returns -1 if it's not, and the PDU length from the TPKT header
38 * if it is.
39 *
40 * "min_len" is the minimum length of the PDU; the length field in the
41 * TPKT header must be at least "8+min_len" in order for this to be a
42 * valid TPKT PDU for the protocol in question.
43 */
44extern uint16_t is_asciitpkt(tvbuff_t *tvb);
45
46/*
47 * Dissect ASCII TPKT-encapsulated data in a TCP stream.
48 */
49extern void dissect_asciitpkt(tvbuff_t *tvb, packet_info *pinfo,
50 proto_tree *tree, dissector_handle_t subdissector_handle);
Definition packet_info.h:43
Definition proto.h:901
Definition packet.c:763
Definition tvbuff-int.h:35