Wireshark  4.3.0
The Wireshark network protocol analyzer
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 "tvbuff.h"
16 #include "address.h"
17 
19 
29 /* Also defined in wiretap/wtap.h */
30 #define P2P_DIR_UNKNOWN -1
31 #define P2P_DIR_SENT 0
32 #define P2P_DIR_RECV 1
33 
34 /* Link direction */
35 #define LINK_DIR_UNKNOWN -1
36 #define P2P_DIR_UL 0
37 #define P2P_DIR_DL 1
38 
39 /*
40  * Presence flags.
41  */
42 #define PINFO_HAS_TS 0x00000001
44 typedef struct _packet_info {
45  const char *current_proto;
47  guint32 presence_flags;
48  guint32 num;
52  gboolean rel_cap_ts_present;
53  frame_data *fd;
54  union wtap_pseudo_header *pseudo_header;
56  GSList *data_src;
63  guint32 vlan_id;
64  const char *noreassembly_reason;
65  gboolean fragmented;
66  struct {
67  guint32 in_error_pkt:1;
68  guint32 in_gre_pkt:1;
69  } flags;
70  port_type ptype;
71  guint32 srcport;
72  guint32 destport;
73  guint32 match_uint;
74  const char *match_string;
78  guint16 can_desegment;
95 #define DESEGMENT_ONE_MORE_SEGMENT 0x0fffffff
96 #define DESEGMENT_UNTIL_FIN 0x0ffffffe
97  guint32 desegment_len;
129  guint32 bytes_until_next_pdu;
130 
131  int p2p_dir;
136  GHashTable *private_table;
139  wmem_map_t *proto_layers;
140  guint8 curr_layer_num;
142  guint16 link_number;
143 
144  guint16 clnp_srcref;
145  guint16 clnp_dstref;
147  int link_dir;
149  gint16 src_win_scale;
150  gint16 dst_win_scale;
152  GSList* proto_data;
154  GSList* frame_end_routines;
155 
157  struct epan_session *epan;
158  const gchar *heur_list_name;
161  guint32 stream_id;
162 } packet_info;
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:44
int desegment_offset
Definition: packet_info.h:94
address src
Definition: packet_info.h:61
const gchar * heur_list_name
Definition: packet_info.h:158
guint32 vlan_id
Definition: packet_info.h:63
GHashTable * private_table
Definition: packet_info.h:136
nstime_t abs_ts
Definition: packet_info.h:49
guint32 in_gre_pkt
Definition: packet_info.h:68
int link_dir
Definition: packet_info.h:147
const char * current_proto
Definition: packet_info.h:45
address net_src
Definition: packet_info.h:59
struct epan_column_info * cinfo
Definition: packet_info.h:46
nstime_t rel_cap_ts
Definition: packet_info.h:51
guint16 want_pdu_tracking
Definition: packet_info.h:106
gboolean use_conv_addr_port_endpoints
Definition: packet_info.h:75
guint16 saved_can_desegment
Definition: packet_info.h:85
guint32 desegment_len
Definition: packet_info.h:97
guint32 destport
Definition: packet_info.h:72
GSList * data_src
Definition: packet_info.h:56
guint16 can_desegment
Definition: packet_info.h:78
gint16 src_win_scale
Definition: packet_info.h:149
guint16 clnp_srcref
Definition: packet_info.h:144
gboolean fragmented
Definition: packet_info.h:65
const char * noreassembly_reason
Definition: packet_info.h:64
address dl_src
Definition: packet_info.h:57
guint8 curr_layer_num
Definition: packet_info.h:140
guint32 match_uint
Definition: packet_info.h:73
address dl_dst
Definition: packet_info.h:58
guint32 in_error_pkt
Definition: packet_info.h:67
const char * match_string
Definition: packet_info.h:74
wmem_list_t * layers
Definition: packet_info.h:138
struct conversation_addr_port_endpoints * conv_addr_port_endpoints
Definition: packet_info.h:76
gint16 dst_win_scale
Definition: packet_info.h:150
guint16 clnp_dstref
Definition: packet_info.h:145
guint8 curr_proto_layer_num
Definition: packet_info.h:141
guint32 presence_flags
Definition: packet_info.h:47
address dst
Definition: packet_info.h:62
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:50
guint32 srcport
Definition: packet_info.h:71
port_type ptype
Definition: packet_info.h:70
guint32 num
Definition: packet_info.h:48
gboolean rel_cap_ts_present
Definition: packet_info.h:52
int dissection_depth
Definition: packet_info.h:159
guint32 stream_id
Definition: packet_info.h:161
int p2p_dir
Definition: packet_info.h:131
address net_dst
Definition: packet_info.h:60
wtap_rec * rec
Definition: packet_info.h:55
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:48
Definition: conversation.h:199
Definition: column-info.h:63
Definition: epan.c:460
Definition: nstime.h:26
Definition: wtap.h:1395
Definition: wtap.h:1161