Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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 "tvbuff.h"
16 #include "address.h"
17
18 struct endpoint;
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;
46 struct epan_column_info *cinfo;
47 guint32 presence_flags;
48 guint32 num;
49 nstime_t abs_ts;
50 nstime_t rel_ts;
51 frame_data *fd;
52 union wtap_pseudo_header *pseudo_header;
53 wtap_rec *rec;
54 GSList *data_src;
55 address dl_src;
56 address dl_dst;
57 address net_src;
58 address net_dst;
59 address src;
60 address dst;
61 guint32 vlan_id;
62 const char *noreassembly_reason;
63 gboolean fragmented;
64 struct {
65 guint32 in_error_pkt:1;
66 guint32 in_gre_pkt:1;
67 } flags;
68 port_type ptype;
69 guint32 srcport;
70 guint32 destport;
71 guint32 match_uint;
72 const char *match_string;
73 gboolean use_endpoint;
74 struct endpoint* conv_endpoint;
75 guint16 can_desegment;
82 guint16 saved_can_desegment;
91 int desegment_offset;
92 #define DESEGMENT_ONE_MORE_SEGMENT 0x0fffffff
93 #define DESEGMENT_UNTIL_FIN 0x0ffffffe
94 guint32 desegment_len;
103 guint16 want_pdu_tracking;
126 guint32 bytes_until_next_pdu;
127
128 int p2p_dir;
133 GHashTable *private_table;
135 wmem_list_t *layers;
136 guint8 curr_layer_num;
137 guint16 link_number;
138
139 guint16 clnp_srcref;
140 guint16 clnp_dstref;
142 int link_dir;
144 GSList* proto_data;
146 GSList* dependent_frames;
148 GSList* frame_end_routines;
149
150 wmem_allocator_t *pool;
151 struct epan_session *epan;
152 const gchar *heur_list_name;
153 } packet_info;
154
157 #endif /* __PACKET_INFO_H__ */
158
159 /*
160 * Editor modelines
161 *
162 * Local Variables:
163 * c-basic-offset: 2
164 * tab-width: 8
165 * indent-tabs-mode: nil
166 * End:
167 *
168 * ex: set shiftwidth=2 tabstop=8 expandtab:
169 * :indentSize=2:tabSize=8:noTabs=true:
170 */
_packet_info::desegment_len
guint32 desegment_len
Definition: packet_info.h:94
_packet_info::private_table
GHashTable * private_table
Definition: packet_info.h:133
_packet_info::p2p_dir
int p2p_dir
Definition: packet_info.h:128
_packet_info::clnp_dstref
guint16 clnp_dstref
Definition: packet_info.h:140
_packet_info::dst
address dst
Definition: packet_info.h:60
_packet_info::destport
guint32 destport
Definition: packet_info.h:70
_packet_info::use_endpoint
gboolean use_endpoint
Definition: packet_info.h:73
_packet_info::srcport
guint32 srcport
Definition: packet_info.h:69
_packet_info
Definition: packet_info.h:44
_packet_info::saved_can_desegment
guint16 saved_can_desegment
Definition: packet_info.h:82
frame_data.h
_packet_info::dependent_frames
GSList * dependent_frames
Definition: packet_info.h:146
wtap_pseudo_header
Definition: wtap.h:1157
_packet_info::desegment_offset
int desegment_offset
Definition: packet_info.h:91
_packet_info::pool
wmem_allocator_t * pool
Definition: packet_info.h:150
_packet_info::net_src
address net_src
Definition: packet_info.h:57
_packet_info::current_proto
const char * current_proto
Definition: packet_info.h:45
_packet_info::num
guint32 num
Definition: packet_info.h:48
epan_column_info
Definition: column-info.h:51
_packet_info::heur_list_name
const gchar * heur_list_name
Definition: packet_info.h:152
_packet_info::net_dst
address net_dst
Definition: packet_info.h:58
nstime_t
Definition: nstime.h:27
_packet_info::link_dir
int link_dir
Definition: packet_info.h:142
_packet_info::layers
wmem_list_t * layers
Definition: packet_info.h:135
_packet_info::cinfo
struct epan_column_info * cinfo
Definition: packet_info.h:46
_packet_info::src
address src
Definition: packet_info.h:59
_packet_info::fragmented
gboolean fragmented
Definition: packet_info.h:63
_packet_info::conv_endpoint
struct endpoint * conv_endpoint
Definition: packet_info.h:74
_packet_info::dl_dst
address dl_dst
Definition: packet_info.h:56
_packet_info::rel_ts
nstime_t rel_ts
Definition: packet_info.h:50
_packet_info::rec
wtap_rec * rec
Definition: packet_info.h:53
_packet_info::dl_src
address dl_src
Definition: packet_info.h:55
_packet_info::curr_layer_num
guint8 curr_layer_num
Definition: packet_info.h:136
_frame_data
Definition: frame_data.h:53
_packet_info::match_uint
guint32 match_uint
Definition: packet_info.h:71
_packet_info::clnp_srcref
guint16 clnp_srcref
Definition: packet_info.h:139
_wmem_allocator_t
Definition: wmem_allocator.h:26
_packet_info::presence_flags
guint32 presence_flags
Definition: packet_info.h:47
_packet_info::match_string
const char * match_string
Definition: packet_info.h:72
_packet_info::vlan_id
guint32 vlan_id
Definition: packet_info.h:61
_packet_info::can_desegment
guint16 can_desegment
Definition: packet_info.h:75
endpoint
Definition: conversation.c:27
_packet_info::data_src
GSList * data_src
Definition: packet_info.h:54
wtap_rec
Definition: wtap.h:1274
_packet_info::proto_data
GSList * proto_data
Definition: packet_info.h:144
_packet_info::abs_ts
nstime_t abs_ts
Definition: packet_info.h:49
_wmem_list_t
Definition: wmem_list.c:23
_packet_info::ptype
port_type ptype
Definition: packet_info.h:68
_packet_info::want_pdu_tracking
guint16 want_pdu_tracking
Definition: packet_info.h:103
_address
Definition: address.h:47
_packet_info::noreassembly_reason
const char * noreassembly_reason
Definition: packet_info.h:62
epan_session
Definition: epan.c:348