Wireshark  2.9.0-477-g68ec514b
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 <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;
47  guint32 presence_flags;
48  guint32 num;
51  frame_data *fd;
52  union wtap_pseudo_header *pseudo_header;
54  GSList *data_src;
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;
75  guint16 can_desegment;
92 #define DESEGMENT_ONE_MORE_SEGMENT 0x0fffffff
93 #define DESEGMENT_UNTIL_FIN 0x0ffffffe
94  guint32 desegment_len;
126  guint32 bytes_until_next_pdu;
127 
128  int p2p_dir;
133  GHashTable *private_table;
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;
148  GSList* frame_end_routines;
149 
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  */
guint32 desegment_len
Definition: packet_info.h:94
GHashTable * private_table
Definition: packet_info.h:133
int p2p_dir
Definition: packet_info.h:128
guint16 clnp_dstref
Definition: packet_info.h:140
address dst
Definition: packet_info.h:60
guint32 destport
Definition: packet_info.h:70
gboolean use_endpoint
Definition: packet_info.h:73
guint32 srcport
Definition: packet_info.h:69
Definition: packet_info.h:44
guint16 saved_can_desegment
Definition: packet_info.h:82
GSList * dependent_frames
Definition: packet_info.h:146
Definition: wtap.h:1157
int desegment_offset
Definition: packet_info.h:91
wmem_allocator_t * pool
Definition: packet_info.h:150
address net_src
Definition: packet_info.h:57
const char * current_proto
Definition: packet_info.h:45
guint32 num
Definition: packet_info.h:48
Definition: column-info.h:51
const gchar * heur_list_name
Definition: packet_info.h:152
address net_dst
Definition: packet_info.h:58
Definition: nstime.h:27
int link_dir
Definition: packet_info.h:142
wmem_list_t * layers
Definition: packet_info.h:135
struct epan_column_info * cinfo
Definition: packet_info.h:46
address src
Definition: packet_info.h:59
gboolean fragmented
Definition: packet_info.h:63
struct endpoint * conv_endpoint
Definition: packet_info.h:74
address dl_dst
Definition: packet_info.h:56
nstime_t rel_ts
Definition: packet_info.h:50
wtap_rec * rec
Definition: packet_info.h:53
address dl_src
Definition: packet_info.h:55
guint8 curr_layer_num
Definition: packet_info.h:136
Definition: frame_data.h:53
guint32 match_uint
Definition: packet_info.h:71
guint16 clnp_srcref
Definition: packet_info.h:139
Definition: wmem_allocator.h:26
guint32 presence_flags
Definition: packet_info.h:47
const char * match_string
Definition: packet_info.h:72
guint32 vlan_id
Definition: packet_info.h:61
guint16 can_desegment
Definition: packet_info.h:75
Definition: conversation.c:27
GSList * data_src
Definition: packet_info.h:54
Definition: wtap.h:1274
GSList * proto_data
Definition: packet_info.h:144
nstime_t abs_ts
Definition: packet_info.h:49
Definition: wmem_list.c:23
port_type ptype
Definition: packet_info.h:68
guint16 want_pdu_tracking
Definition: packet_info.h:103
Definition: address.h:47
const char * noreassembly_reason
Definition: packet_info.h:62
Definition: epan.c:348