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
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
plugins
epan
wimax
wimax_tlv.h
1
/* wimax_tlv.h
2
* WiMax TLV handling function header file
3
*
4
* Copyright (c) 2007 by Intel Corporation.
5
*
6
* Author: Lu Pan <lu.pan@intel.com>
7
*
8
* Wireshark - Network traffic analyzer
9
* By Gerald Combs <gerald@wireshark.org>
10
* Copyright 1999 Gerald Combs
11
*
12
* SPDX-License-Identifier: GPL-2.0-or-later
13
*/
14
#ifndef _WIMAX_TLV_H_
15
#define _WIMAX_TLV_H_
16
17
#include <
epan/packet.h
>
18
19
#define WIMAX_TLV_EXTENDED_LENGTH_MASK 0x80
20
#define WIMAX_TLV_LENGTH_MASK 0x7F
21
22
#define MAX_TLV_LEN 64000
23
24
typedef
struct
25
{
26
uint8_t valid;
/* TLV info status: 0=invalid; 1=valid */
27
uint8_t type;
/* TLV type */
28
uint8_t length_type;
/* length type: 0=single byte; 1=multiple bytes */
29
uint8_t size_of_length;
/* size of the TLV length */
30
unsigned
value_offset;
/* the offset of TLV value field */
31
int32_t length;
/* length of TLV value field */
32
}
tlv_info_t
;
24
typedef
struct
{
…
};
33
34
int
init_tlv_info(
tlv_info_t
*
info
,
tvbuff_t
*tvb,
int
offset);
35
int
valid_tlv_info(
tlv_info_t
*
info
);
36
int
get_tlv_type(
tlv_info_t
*
info
);
37
int
get_tlv_length_type(
tlv_info_t
*
info
);
38
int
get_tlv_size_of_length(
tlv_info_t
*
info
);
39
int
get_tlv_value_offset(
tlv_info_t
*
info
);
40
int32_t get_tlv_length(
tlv_info_t
*
info
);
41
proto_item
*add_tlv_subtree(
tlv_info_t
*
info
,
proto_tree
*tree,
int
hfindex,
tvbuff_t
*tvb,
int
start,
const
unsigned
encoding);
42
proto_tree
*add_tlv_subtree_no_item(
tlv_info_t
*
info
,
proto_tree
*tree,
int
hfindex,
tvbuff_t
*tvb,
int
start);
43
proto_tree
*add_protocol_subtree(
tlv_info_t
*
info
,
int
idx,
proto_tree
*tree,
int
hfindex,
tvbuff_t
*tvb,
int
start,
int
length,
const
char
*label);
44
45
#endif
/* WIMAX_TLV_H */
packet.h
_proto_node
Definition
proto.h:903
info
Definition
file-pcapng.h:57
tlv_info_t
Definition
wimax_tlv.h:25
tvbuff
Definition
tvbuff-int.h:35
Generated by
1.9.8