Wireshark 4.5.0
The Wireshark network protocol analyzer
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
packet_info.h
Go to the documentation of this file.
1/* packet_info.h
2 * Definitions for packet info structures and routines
3 *
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
7 *
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
10
11#ifndef __PACKET_INFO_H__
12#define __PACKET_INFO_H__
13
14#include "frame_data.h"
15#include "address.h"
16
18
28/* Also defined in wiretap/wtap.h */
29#define P2P_DIR_UNKNOWN -1
30#define P2P_DIR_SENT 0
31#define P2P_DIR_RECV 1
32
33/* Link direction */
34#define LINK_DIR_UNKNOWN -1
35#define P2P_DIR_UL 0
36#define P2P_DIR_DL 1
37
38/*
39 * Presence flags.
40 */
41#define PINFO_HAS_TS 0x00000001
43typedef struct _packet_info {
44 const char *current_proto;
46 uint32_t presence_flags;
47 uint32_t num;
52 frame_data *fd;
53 union wtap_pseudo_header *pseudo_header;
55 GSList *data_src;
62 uint32_t vlan_id;
63 const char *noreassembly_reason;
65 struct {
66 uint32_t in_error_pkt:1;
67 uint32_t in_gre_pkt:1;
68 } flags;
69 uint32_t expert_severity;
70 port_type ptype;
71 uint32_t srcport;
72 uint32_t destport;
73 uint32_t match_uint;
74 const char *match_string;
78 uint16_t can_desegment;
95#define DESEGMENT_ONE_MORE_SEGMENT 0x0fffffff
96#define DESEGMENT_UNTIL_FIN 0x0ffffffe
97 uint32_t desegment_len;
129 uint32_t bytes_until_next_pdu;
130
136 GHashTable *private_table;
139 wmem_map_t *proto_layers;
142 uint16_t link_number;
143
144 uint16_t clnp_srcref;
145 uint16_t clnp_dstref;
152 GSList* proto_data;
154 GSList* frame_end_routines;
155
157 struct epan_session *epan;
158 const char *heur_list_name;
161 uint32_t stream_id;
163
166#endif /* __PACKET_INFO_H__ */
167
168/*
169 * Editor modelines
170 *
171 * Local Variables:
172 * c-basic-offset: 2
173 * tab-width: 8
174 * indent-tabs-mode: nil
175 * End:
176 *
177 * ex: set shiftwidth=2 tabstop=8 expandtab:
178 * :indentSize=2:tabSize=8:noTabs=true:
179 */
Definition address.h:56
Definition packet_info.h:43
int desegment_offset
Definition packet_info.h:94
address src
Definition packet_info.h:60
uint32_t match_uint
Definition packet_info.h:73
GHashTable * private_table
Definition packet_info.h:136
nstime_t abs_ts
Definition packet_info.h:48
int16_t src_win_scale
Definition packet_info.h:149
int link_dir
Definition packet_info.h:147
const char * current_proto
Definition packet_info.h:44
address net_src
Definition packet_info.h:58
uint32_t expert_severity
Definition packet_info.h:69
bool fragmented
Definition packet_info.h:64
bool use_conv_addr_port_endpoints
Definition packet_info.h:75
uint32_t srcport
Definition packet_info.h:71
struct epan_column_info * cinfo
Definition packet_info.h:45
nstime_t rel_cap_ts
Definition packet_info.h:50
uint32_t in_gre_pkt
Definition packet_info.h:67
GSList * data_src
Definition packet_info.h:55
uint16_t clnp_dstref
Definition packet_info.h:145
const char * noreassembly_reason
Definition packet_info.h:63
address dl_src
Definition packet_info.h:56
uint16_t can_desegment
Definition packet_info.h:78
address dl_dst
Definition packet_info.h:57
uint32_t presence_flags
Definition packet_info.h:46
int16_t dst_win_scale
Definition packet_info.h:150
const char * match_string
Definition packet_info.h:74
const char * heur_list_name
Definition packet_info.h:158
uint32_t destport
Definition packet_info.h:72
wmem_list_t * layers
Definition packet_info.h:138
uint32_t num
Definition packet_info.h:47
uint32_t stream_id
Definition packet_info.h:161
struct conversation_addr_port_endpoints * conv_addr_port_endpoints
Definition packet_info.h:76
uint32_t in_error_pkt
Definition packet_info.h:66
uint32_t desegment_len
Definition packet_info.h:97
uint32_t vlan_id
Definition packet_info.h:62
address dst
Definition packet_info.h:61
wmem_allocator_t * pool
Definition packet_info.h:156
struct conversation_element * conv_elements
Definition packet_info.h:77
nstime_t rel_ts
Definition packet_info.h:49
uint16_t clnp_srcref
Definition packet_info.h:144
uint16_t want_pdu_tracking
Definition packet_info.h:106
uint8_t curr_layer_num
Definition packet_info.h:140
port_type ptype
Definition packet_info.h:70
int dissection_depth
Definition packet_info.h:159
bool rel_cap_ts_present
Definition packet_info.h:51
int p2p_dir
Definition packet_info.h:131
uint16_t saved_can_desegment
Definition packet_info.h:85
address net_dst
Definition packet_info.h:59
uint8_t curr_proto_layer_num
Definition packet_info.h:141
wtap_rec * rec
Definition packet_info.h:54
GSList * proto_data
Definition packet_info.h:152
Definition wmem_allocator.h:27
Definition wmem_list.c:23
Definition wmem_map.c:44
Definition conversation.c:49
Definition conversation.h:207
Definition column-info.h:62
Definition epan.c:482
Definition nstime.h:26
Definition wtap.h:1433
Definition wtap.h:1198