Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / packet-tpkt.h
bloba983adbf78bb9622137f79cb95c1107fe8444ba9
1 /* packet-tpkt.h
3 * Routines for TPKT dissection
5 * Copyright 2000, Philips Electronics N.V.
6 * Andreas Sikkema <andreas.sikkema@philips.com>
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <gerald@wireshark.org>
10 * Copyright 1998 Gerald Combs
12 * SPDX-License-Identifier: GPL-2.0-or-later
15 #include "ws_symbol_export.h"
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.
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.
26 WS_DLL_PUBLIC int is_tpkt(tvbuff_t *tvb, int min_len);
29 * Dissect TPKT-encapsulated data in a TCP stream.
31 WS_DLL_PUBLIC void dissect_tpkt_encap(tvbuff_t *tvb, packet_info *pinfo,
32 proto_tree *tree, bool desegment,
33 dissector_handle_t subdissector_handle);
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.
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.
44 extern uint16_t is_asciitpkt(tvbuff_t *tvb);
47 * Dissect ASCII TPKT-encapsulated data in a TCP stream.
49 extern void dissect_asciitpkt(tvbuff_t *tvb, packet_info *pinfo,
50 proto_tree *tree, dissector_handle_t subdissector_handle);