Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
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 <[email protected]>
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;
53 frame_data *fd;
56 GSList *data_src;
65 uint32_t vlan_id;
66 const char *noreassembly_reason;
69 struct {
70 uint32_t in_error_pkt : 1;
71 uint32_t in_gre_pkt : 1;
72 } flags;
73
74 uint32_t expert_severity;
75 port_type ptype;
76 uint32_t srcport;
77 uint32_t destport;
79 uint32_t match_uint;
80 const char *match_string;
86 uint16_t can_desegment;
106#define DESEGMENT_ONE_MORE_SEGMENT 0x0fffffff
107#define DESEGMENT_UNTIL_FIN 0x0ffffffe
108 uint32_t desegment_len;
147 GHashTable *private_table;
152 uint16_t link_number;
154 uint16_t clnp_srcref;
155 uint16_t clnp_dstref;
161 GSList *proto_data;
167 const char *heur_list_name;
170 uint32_t stream_id;
171 uint32_t track_ctype;
176
179#endif /* __PACKET_INFO_H__ */
180
181/*
182 * Editor modelines
183 *
184 * Local Variables:
185 * c-basic-offset: 2
186 * tab-width: 8
187 * indent-tabs-mode: nil
188 * End:
189 *
190 * ex: set shiftwidth=2 tabstop=8 expandtab:
191 * :indentSize=2:tabSize=8:noTabs=true:
192 */
Definition address.h:58
Definition packet_info.h:43
int desegment_offset
Definition packet_info.h:104
address src
Definition packet_info.h:62
uint32_t match_uint
Definition packet_info.h:79
GHashTable * private_table
Definition packet_info.h:147
nstime_t abs_ts
Definition packet_info.h:48
int16_t src_win_scale
Definition packet_info.h:158
int link_dir
Definition packet_info.h:157
const char * current_proto
Definition packet_info.h:44
address net_src
Definition packet_info.h:60
uint32_t expert_severity
Definition packet_info.h:74
wmem_map_t * proto_layers
Definition packet_info.h:149
bool fragmented
Definition packet_info.h:67
bool use_conv_addr_port_endpoints
Definition packet_info.h:82
uint32_t srcport
Definition packet_info.h:76
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:71
frame_data * fd
Definition packet_info.h:53
GSList * data_src
Definition packet_info.h:56
uint16_t link_number
Definition packet_info.h:152
uint16_t clnp_dstref
Definition packet_info.h:155
const char * noreassembly_reason
Definition packet_info.h:66
union wtap_pseudo_header * pseudo_header
Definition packet_info.h:54
address dl_src
Definition packet_info.h:58
uint16_t can_desegment
Definition packet_info.h:86
address dl_dst
Definition packet_info.h:59
uint32_t presence_flags
Definition packet_info.h:46
int16_t dst_win_scale
Definition packet_info.h:159
const char * match_string
Definition packet_info.h:80
const char * heur_list_name
Definition packet_info.h:167
uint32_t destport
Definition packet_info.h:77
GSList * frame_end_routines
Definition packet_info.h:162
wmem_list_t * layers
Definition packet_info.h:148
uint32_t num
Definition packet_info.h:47
uint32_t stream_id
Definition packet_info.h:170
struct conversation_addr_port_endpoints * conv_addr_port_endpoints
Definition packet_info.h:83
uint32_t in_error_pkt
Definition packet_info.h:70
uint32_t desegment_len
Definition packet_info.h:108
uint32_t vlan_id
Definition packet_info.h:65
address dst
Definition packet_info.h:63
wmem_allocator_t * pool
Definition packet_info.h:164
struct conversation_element * conv_elements
Definition packet_info.h:84
uint32_t track_ctype
Definition packet_info.h:171
nstime_t rel_ts
Definition packet_info.h:49
uint16_t clnp_srcref
Definition packet_info.h:154
struct epan_session * epan
Definition packet_info.h:165
uint16_t want_pdu_tracking
Definition packet_info.h:117
uint8_t curr_layer_num
Definition packet_info.h:150
port_type ptype
Definition packet_info.h:75
int dissection_depth
Definition packet_info.h:168
bool rel_cap_ts_present
Definition packet_info.h:51
int p2p_dir
Definition packet_info.h:142
uint16_t saved_can_desegment
Definition packet_info.h:94
address net_dst
Definition packet_info.h:61
uint8_t curr_proto_layer_num
Definition packet_info.h:151
uint32_t bytes_until_next_pdu
Definition packet_info.h:140
wtap_rec * rec
Definition packet_info.h:55
GSList * proto_data
Definition packet_info.h:161
Definition wmem_allocator.h:27
Definition wmem_list.c:23
Definition wmem_map.c:60
Definition conversation.c:49
Definition conversation.h:209
Definition column-info.h:62
Definition epan.c:479
Definition nstime.h:26
Definition wtap.h:1442
Definition wtap.h:1211