Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
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 <[email protected]>
7 *
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <[email protected]>
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
27typedef struct
28{
29 uint8_t valid;
30 uint8_t type;
31 uint8_t length_type;
33 unsigned value_offset;
34 int32_t length;
36
45int init_tlv_info(tlv_info_t *info, tvbuff_t *tvb, int offset);
46
53int valid_tlv_info(tlv_info_t *info);
54
61int get_tlv_type(tlv_info_t *info);
62
69int get_tlv_length_type(tlv_info_t *info);
70
77int get_tlv_size_of_length(tlv_info_t *info);
78
85int get_tlv_value_offset(tlv_info_t *info);
86
93int32_t get_tlv_length(tlv_info_t *info);
94
106proto_item *add_tlv_subtree(tlv_info_t *info, proto_tree *tree, int hfindex, tvbuff_t *tvb, int start, const unsigned encoding);
107
118proto_tree *add_tlv_subtree_no_item(tlv_info_t *info, proto_tree *tree, int hfindex, tvbuff_t *tvb, int start);
119
133proto_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);
134
135#endif /* WIMAX_TLV_H */
proto_node proto_item
Definition proto.h:927
Definition file-pcapng.h:57
Describes the parsed layout of a single TLV (Type-Length-Value) field.
Definition wimax_tlv.h:28
int32_t length
Definition wimax_tlv.h:34
uint8_t type
Definition wimax_tlv.h:30
uint8_t valid
Definition wimax_tlv.h:29
unsigned value_offset
Definition wimax_tlv.h:33
uint8_t size_of_length
Definition wimax_tlv.h:32
uint8_t length_type
Definition wimax_tlv.h:31