Wireshark
4.5.0
The Wireshark network protocol analyzer
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
Variables
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
m
o
p
r
s
t
u
v
w
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
Typedefs
a
b
c
d
e
f
g
h
i
m
p
r
s
t
u
v
w
Enumerations
Enumerator
a
b
c
e
f
h
i
n
o
r
s
t
w
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
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 <andreas.sikkema@philips.com>
7
*
8
* Wireshark - Network traffic analyzer
9
* By Gerald Combs <gerald@wireshark.org>
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:906
dissector_handle
Definition
packet.c:838
tvbuff
Definition
tvbuff-int.h:35
Generated by
1.9.8