Wireshark 4.5.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;
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 port_type ptype;
70 uint32_t srcport;
71 uint32_t destport;
72 uint32_t match_uint;
73 const char *match_string;
77 uint16_t can_desegment;
94#define DESEGMENT_ONE_MORE_SEGMENT 0x0fffffff
95#define DESEGMENT_UNTIL_FIN 0x0ffffffe
96 uint32_t desegment_len;
128 uint32_t bytes_until_next_pdu;
129
135 GHashTable *private_table;
138 wmem_map_t *proto_layers;
141 uint16_t link_number;
142
143 uint16_t clnp_srcref;
144 uint16_t clnp_dstref;
151 GSList* proto_data;
153 GSList* frame_end_routines;
154
156 struct epan_session *epan;
157 const char *heur_list_name;
160 uint32_t stream_id;
162
165#endif /* __PACKET_INFO_H__ */
166
167/*
168 * Editor modelines
169 *
170 * Local Variables:
171 * c-basic-offset: 2
172 * tab-width: 8
173 * indent-tabs-mode: nil
174 * End:
175 *
176 * ex: set shiftwidth=2 tabstop=8 expandtab:
177 * :indentSize=2:tabSize=8:noTabs=true:
178 */
Definition address.h:56
Definition packet_info.h:43
int desegment_offset
Definition packet_info.h:93
address src
Definition packet_info.h:60
uint32_t match_uint
Definition packet_info.h:72
GHashTable * private_table
Definition packet_info.h:135
nstime_t abs_ts
Definition packet_info.h:48
int16_t src_win_scale
Definition packet_info.h:148
int link_dir
Definition packet_info.h:146
const char * current_proto
Definition packet_info.h:44
address net_src
Definition packet_info.h:58
bool fragmented
Definition packet_info.h:64
bool use_conv_addr_port_endpoints
Definition packet_info.h:74
uint32_t srcport
Definition packet_info.h:70
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:144
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:77
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:149
const char * match_string
Definition packet_info.h:73
const char * heur_list_name
Definition packet_info.h:157
uint32_t destport
Definition packet_info.h:71
wmem_list_t * layers
Definition packet_info.h:137
uint32_t num
Definition packet_info.h:47
uint32_t stream_id
Definition packet_info.h:160
struct conversation_addr_port_endpoints * conv_addr_port_endpoints
Definition packet_info.h:75
uint32_t in_error_pkt
Definition packet_info.h:66
uint32_t desegment_len
Definition packet_info.h:96
uint32_t vlan_id
Definition packet_info.h:62
address dst
Definition packet_info.h:61
wmem_allocator_t * pool
Definition packet_info.h:155
struct conversation_element * conv_elements
Definition packet_info.h:76
nstime_t rel_ts
Definition packet_info.h:49
uint16_t clnp_srcref
Definition packet_info.h:143
uint16_t want_pdu_tracking
Definition packet_info.h:105
uint8_t curr_layer_num
Definition packet_info.h:139
port_type ptype
Definition packet_info.h:69
int dissection_depth
Definition packet_info.h:158
bool rel_cap_ts_present
Definition packet_info.h:51
int p2p_dir
Definition packet_info.h:130
uint16_t saved_can_desegment
Definition packet_info.h:84
address net_dst
Definition packet_info.h:59
uint8_t curr_proto_layer_num
Definition packet_info.h:140
wtap_rec * rec
Definition packet_info.h:54
GSList * proto_data
Definition packet_info.h:151
Definition wmem_allocator.h:27
Definition wmem_list.c:23
Definition wmem_map.c:44
Definition conversation.c:49
Definition conversation.h:203
Definition column-info.h:62
Definition epan.c:467
Definition nstime.h:26
Definition wtap.h:1432
Definition wtap.h:1198