Wireshark
4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
epan
dissectors
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
*/
26
WS_DLL_PUBLIC
int
is_tpkt(
tvbuff_t
*tvb,
int
min_len);
27
28
/*
29
* Dissect TPKT-encapsulated data in a TCP stream.
30
*/
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);
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
*/
44
extern
uint16_t is_asciitpkt(
tvbuff_t
*tvb);
45
46
/*
47
* Dissect ASCII TPKT-encapsulated data in a TCP stream.
48
*/
49
extern
void
dissect_asciitpkt(
tvbuff_t
*tvb,
packet_info
*pinfo,
50
proto_tree
*tree,
dissector_handle_t
subdissector_handle);
_packet_info
Definition
packet_info.h:43
_proto_node
Definition
proto.h:901
dissector_handle
Definition
packet.c:763
tvbuff
Definition
tvbuff-int.h:35
Generated by
1.9.8