12 #include <wireshark.h>
87 #define WTAP_ENCAP_NONE -2
88 #define WTAP_ENCAP_PER_PACKET -1
89 #define WTAP_ENCAP_UNKNOWN 0
90 #define WTAP_ENCAP_ETHERNET 1
91 #define WTAP_ENCAP_TOKEN_RING 2
92 #define WTAP_ENCAP_SLIP 3
93 #define WTAP_ENCAP_PPP 4
94 #define WTAP_ENCAP_FDDI 5
95 #define WTAP_ENCAP_FDDI_BITSWAPPED 6
96 #define WTAP_ENCAP_RAW_IP 7
97 #define WTAP_ENCAP_ARCNET 8
98 #define WTAP_ENCAP_ARCNET_LINUX 9
99 #define WTAP_ENCAP_ATM_RFC1483 10
100 #define WTAP_ENCAP_LINUX_ATM_CLIP 11
101 #define WTAP_ENCAP_LAPB 12
102 #define WTAP_ENCAP_ATM_PDUS 13
103 #define WTAP_ENCAP_ATM_PDUS_UNTRUNCATED 14
104 #define WTAP_ENCAP_NULL 15
105 #define WTAP_ENCAP_ASCEND 16
106 #define WTAP_ENCAP_ISDN 17
107 #define WTAP_ENCAP_IP_OVER_FC 18
108 #define WTAP_ENCAP_PPP_WITH_PHDR 19
109 #define WTAP_ENCAP_IEEE_802_11 20
110 #define WTAP_ENCAP_IEEE_802_11_PRISM 21
111 #define WTAP_ENCAP_IEEE_802_11_WITH_RADIO 22
112 #define WTAP_ENCAP_IEEE_802_11_RADIOTAP 23
113 #define WTAP_ENCAP_IEEE_802_11_AVS 24
114 #define WTAP_ENCAP_SLL 25
115 #define WTAP_ENCAP_FRELAY 26
116 #define WTAP_ENCAP_FRELAY_WITH_PHDR 27
117 #define WTAP_ENCAP_CHDLC 28
118 #define WTAP_ENCAP_CISCO_IOS 29
119 #define WTAP_ENCAP_LOCALTALK 30
120 #define WTAP_ENCAP_OLD_PFLOG 31
121 #define WTAP_ENCAP_HHDLC 32
122 #define WTAP_ENCAP_DOCSIS 33
123 #define WTAP_ENCAP_COSINE 34
124 #define WTAP_ENCAP_WFLEET_HDLC 35
125 #define WTAP_ENCAP_SDLC 36
126 #define WTAP_ENCAP_TZSP 37
127 #define WTAP_ENCAP_ENC 38
128 #define WTAP_ENCAP_PFLOG 39
129 #define WTAP_ENCAP_CHDLC_WITH_PHDR 40
130 #define WTAP_ENCAP_BLUETOOTH_H4 41
131 #define WTAP_ENCAP_MTP2 42
132 #define WTAP_ENCAP_MTP3 43
133 #define WTAP_ENCAP_IRDA 44
134 #define WTAP_ENCAP_USER0 45
135 #define WTAP_ENCAP_USER1 46
136 #define WTAP_ENCAP_USER2 47
137 #define WTAP_ENCAP_USER3 48
138 #define WTAP_ENCAP_USER4 49
139 #define WTAP_ENCAP_USER5 50
140 #define WTAP_ENCAP_USER6 51
141 #define WTAP_ENCAP_USER7 52
142 #define WTAP_ENCAP_USER8 53
143 #define WTAP_ENCAP_USER9 54
144 #define WTAP_ENCAP_USER10 55
145 #define WTAP_ENCAP_USER11 56
146 #define WTAP_ENCAP_USER12 57
147 #define WTAP_ENCAP_USER13 58
148 #define WTAP_ENCAP_USER14 59
149 #define WTAP_ENCAP_USER15 60
150 #define WTAP_ENCAP_SYMANTEC 61
151 #define WTAP_ENCAP_APPLE_IP_OVER_IEEE1394 62
152 #define WTAP_ENCAP_BACNET_MS_TP 63
153 #define WTAP_ENCAP_NETTL_RAW_ICMP 64
154 #define WTAP_ENCAP_NETTL_RAW_ICMPV6 65
155 #define WTAP_ENCAP_GPRS_LLC 66
156 #define WTAP_ENCAP_JUNIPER_ATM1 67
157 #define WTAP_ENCAP_JUNIPER_ATM2 68
158 #define WTAP_ENCAP_REDBACK 69
159 #define WTAP_ENCAP_NETTL_RAW_IP 70
160 #define WTAP_ENCAP_NETTL_ETHERNET 71
161 #define WTAP_ENCAP_NETTL_TOKEN_RING 72
162 #define WTAP_ENCAP_NETTL_FDDI 73
163 #define WTAP_ENCAP_NETTL_UNKNOWN 74
164 #define WTAP_ENCAP_MTP2_WITH_PHDR 75
165 #define WTAP_ENCAP_JUNIPER_PPPOE 76
166 #define WTAP_ENCAP_GCOM_TIE1 77
167 #define WTAP_ENCAP_GCOM_SERIAL 78
168 #define WTAP_ENCAP_NETTL_X25 79
169 #define WTAP_ENCAP_K12 80
170 #define WTAP_ENCAP_JUNIPER_MLPPP 81
171 #define WTAP_ENCAP_JUNIPER_MLFR 82
172 #define WTAP_ENCAP_JUNIPER_ETHER 83
173 #define WTAP_ENCAP_JUNIPER_PPP 84
174 #define WTAP_ENCAP_JUNIPER_FRELAY 85
175 #define WTAP_ENCAP_JUNIPER_CHDLC 86
176 #define WTAP_ENCAP_JUNIPER_GGSN 87
177 #define WTAP_ENCAP_LINUX_LAPD 88
178 #define WTAP_ENCAP_CATAPULT_DCT2000 89
179 #define WTAP_ENCAP_BER 90
180 #define WTAP_ENCAP_JUNIPER_VP 91
181 #define WTAP_ENCAP_USB_FREEBSD 92
182 #define WTAP_ENCAP_IEEE802_16_MAC_CPS 93
183 #define WTAP_ENCAP_NETTL_RAW_TELNET 94
184 #define WTAP_ENCAP_USB_LINUX 95
185 #define WTAP_ENCAP_MPEG 96
186 #define WTAP_ENCAP_PPI 97
187 #define WTAP_ENCAP_ERF 98
188 #define WTAP_ENCAP_BLUETOOTH_H4_WITH_PHDR 99
189 #define WTAP_ENCAP_SITA 100
190 #define WTAP_ENCAP_SCCP 101
191 #define WTAP_ENCAP_BLUETOOTH_HCI 102
192 #define WTAP_ENCAP_IPMB_KONTRON 103
193 #define WTAP_ENCAP_IEEE802_15_4 104
194 #define WTAP_ENCAP_X2E_XORAYA 105
195 #define WTAP_ENCAP_FLEXRAY 106
196 #define WTAP_ENCAP_LIN 107
197 #define WTAP_ENCAP_MOST 108
198 #define WTAP_ENCAP_CAN20B 109
199 #define WTAP_ENCAP_LAYER1_EVENT 110
200 #define WTAP_ENCAP_X2E_SERIAL 111
201 #define WTAP_ENCAP_I2C_LINUX 112
202 #define WTAP_ENCAP_IEEE802_15_4_NONASK_PHY 113
203 #define WTAP_ENCAP_TNEF 114
204 #define WTAP_ENCAP_USB_LINUX_MMAPPED 115
205 #define WTAP_ENCAP_GSM_UM 116
206 #define WTAP_ENCAP_DPNSS 117
207 #define WTAP_ENCAP_PACKETLOGGER 118
208 #define WTAP_ENCAP_NSTRACE_1_0 119
209 #define WTAP_ENCAP_NSTRACE_2_0 120
210 #define WTAP_ENCAP_FIBRE_CHANNEL_FC2 121
211 #define WTAP_ENCAP_FIBRE_CHANNEL_FC2_WITH_FRAME_DELIMS 122
212 #define WTAP_ENCAP_JPEG_JFIF 123
213 #define WTAP_ENCAP_IPNET 124
214 #define WTAP_ENCAP_SOCKETCAN 125
215 #define WTAP_ENCAP_IEEE_802_11_NETMON 126
216 #define WTAP_ENCAP_IEEE802_15_4_NOFCS 127
217 #define WTAP_ENCAP_RAW_IPFIX 128
218 #define WTAP_ENCAP_RAW_IP4 129
219 #define WTAP_ENCAP_RAW_IP6 130
220 #define WTAP_ENCAP_LAPD 131
221 #define WTAP_ENCAP_DVBCI 132
222 #define WTAP_ENCAP_MUX27010 133
223 #define WTAP_ENCAP_MIME 134
224 #define WTAP_ENCAP_NETANALYZER 135
225 #define WTAP_ENCAP_NETANALYZER_TRANSPARENT 136
226 #define WTAP_ENCAP_IP_OVER_IB_SNOOP 137
227 #define WTAP_ENCAP_MPEG_2_TS 138
228 #define WTAP_ENCAP_PPP_ETHER 139
229 #define WTAP_ENCAP_NFC_LLCP 140
230 #define WTAP_ENCAP_NFLOG 141
231 #define WTAP_ENCAP_V5_EF 142
232 #define WTAP_ENCAP_BACNET_MS_TP_WITH_PHDR 143
233 #define WTAP_ENCAP_IXVERIWAVE 144
234 #define WTAP_ENCAP_SDH 145
235 #define WTAP_ENCAP_DBUS 146
236 #define WTAP_ENCAP_AX25_KISS 147
237 #define WTAP_ENCAP_AX25 148
238 #define WTAP_ENCAP_SCTP 149
239 #define WTAP_ENCAP_INFINIBAND 150
240 #define WTAP_ENCAP_JUNIPER_SVCS 151
241 #define WTAP_ENCAP_USBPCAP 152
242 #define WTAP_ENCAP_RTAC_SERIAL 153
243 #define WTAP_ENCAP_BLUETOOTH_LE_LL 154
244 #define WTAP_ENCAP_WIRESHARK_UPPER_PDU 155
245 #define WTAP_ENCAP_STANAG_4607 156
246 #define WTAP_ENCAP_STANAG_5066_D_PDU 157
247 #define WTAP_ENCAP_NETLINK 158
248 #define WTAP_ENCAP_BLUETOOTH_LINUX_MONITOR 159
249 #define WTAP_ENCAP_BLUETOOTH_BREDR_BB 160
250 #define WTAP_ENCAP_BLUETOOTH_LE_LL_WITH_PHDR 161
251 #define WTAP_ENCAP_NSTRACE_3_0 162
252 #define WTAP_ENCAP_LOGCAT 163
253 #define WTAP_ENCAP_LOGCAT_BRIEF 164
254 #define WTAP_ENCAP_LOGCAT_PROCESS 165
255 #define WTAP_ENCAP_LOGCAT_TAG 166
256 #define WTAP_ENCAP_LOGCAT_THREAD 167
257 #define WTAP_ENCAP_LOGCAT_TIME 168
258 #define WTAP_ENCAP_LOGCAT_THREADTIME 169
259 #define WTAP_ENCAP_LOGCAT_LONG 170
260 #define WTAP_ENCAP_PKTAP 171
261 #define WTAP_ENCAP_EPON 172
262 #define WTAP_ENCAP_IPMI_TRACE 173
263 #define WTAP_ENCAP_LOOP 174
264 #define WTAP_ENCAP_JSON 175
265 #define WTAP_ENCAP_NSTRACE_3_5 176
266 #define WTAP_ENCAP_ISO14443 177
267 #define WTAP_ENCAP_GFP_T 178
268 #define WTAP_ENCAP_GFP_F 179
269 #define WTAP_ENCAP_IP_OVER_IB_PCAP 180
270 #define WTAP_ENCAP_JUNIPER_VN 181
271 #define WTAP_ENCAP_USB_DARWIN 182
272 #define WTAP_ENCAP_LORATAP 183
273 #define WTAP_ENCAP_3MB_ETHERNET 184
274 #define WTAP_ENCAP_VSOCK 185
275 #define WTAP_ENCAP_NORDIC_BLE 186
276 #define WTAP_ENCAP_NETMON_NET_NETEVENT 187
277 #define WTAP_ENCAP_NETMON_HEADER 188
278 #define WTAP_ENCAP_NETMON_NET_FILTER 189
279 #define WTAP_ENCAP_NETMON_NETWORK_INFO_EX 190
280 #define WTAP_ENCAP_MA_WFP_CAPTURE_V4 191
281 #define WTAP_ENCAP_MA_WFP_CAPTURE_V6 192
282 #define WTAP_ENCAP_MA_WFP_CAPTURE_2V4 193
283 #define WTAP_ENCAP_MA_WFP_CAPTURE_2V6 194
284 #define WTAP_ENCAP_MA_WFP_CAPTURE_AUTH_V4 195
285 #define WTAP_ENCAP_MA_WFP_CAPTURE_AUTH_V6 196
286 #define WTAP_ENCAP_JUNIPER_ST 197
287 #define WTAP_ENCAP_ETHERNET_MPACKET 198
288 #define WTAP_ENCAP_DOCSIS31_XRA31 199
289 #define WTAP_ENCAP_DPAUXMON 200
290 #define WTAP_ENCAP_RUBY_MARSHAL 201
291 #define WTAP_ENCAP_RFC7468 202
292 #define WTAP_ENCAP_SYSTEMD_JOURNAL 203
293 #define WTAP_ENCAP_EBHSCR 204
294 #define WTAP_ENCAP_VPP 205
295 #define WTAP_ENCAP_IEEE802_15_4_TAP 206
296 #define WTAP_ENCAP_LOG_3GPP 207
297 #define WTAP_ENCAP_USB_2_0 208
298 #define WTAP_ENCAP_MP4 209
299 #define WTAP_ENCAP_SLL2 210
300 #define WTAP_ENCAP_ZWAVE_SERIAL 211
301 #define WTAP_ENCAP_ETW 212
302 #define WTAP_ENCAP_ERI_ENB_LOG 213
303 #define WTAP_ENCAP_ZBNCP 214
304 #define WTAP_ENCAP_USB_2_0_LOW_SPEED 215
305 #define WTAP_ENCAP_USB_2_0_FULL_SPEED 216
306 #define WTAP_ENCAP_USB_2_0_HIGH_SPEED 217
307 #define WTAP_ENCAP_AUTOSAR_DLT 218
308 #define WTAP_ENCAP_AUERSWALD_LOG 219
309 #define WTAP_ENCAP_ATSC_ALP 220
310 #define WTAP_ENCAP_FIRA_UCI 221
311 #define WTAP_ENCAP_SILABS_DEBUG_CHANNEL 222
312 #define WTAP_ENCAP_MDB 223
313 #define WTAP_ENCAP_EMS 224
314 #define WTAP_ENCAP_DECT_NR 225
318 #define WTAP_NUM_ENCAP_TYPES wtap_get_num_encap_types()
321 #define WTAP_FILE_TYPE_SUBTYPE_UNKNOWN -1
324 #define WTAP_TSPREC_UNKNOWN -2
325 #define WTAP_TSPREC_PER_PACKET -1
331 #define WTAP_TSPREC_SEC 0
332 #define WTAP_TSPREC_100_MSEC 1
333 #define WTAP_TSPREC_DSEC 1
334 #define WTAP_TSPREC_10_MSEC 2
335 #define WTAP_TSPREC_CSEC 2
336 #define WTAP_TSPREC_MSEC 3
337 #define WTAP_TSPREC_100_USEC 4
338 #define WTAP_TSPREC_10_USEC 5
339 #define WTAP_TSPREC_USEC 6
340 #define WTAP_TSPREC_100_NSEC 7
341 #define WTAP_TSPREC_10_NSEC 8
342 #define WTAP_TSPREC_NSEC 9
367 #define WTAP_MAX_PACKET_SIZE_STANDARD 262144U
368 #define WTAP_MAX_PACKET_SIZE_USBPCAP (128U*1024U*1024U)
369 #define WTAP_MAX_PACKET_SIZE_EBHSCR (32U*1024U*1024U)
370 #define WTAP_MAX_PACKET_SIZE_DBUS (128U*1024U*1024U)
396 #define FROM_DCE 0x80
418 #define ATM_RAW_CELL 0x01
419 #define ATM_NO_HEC 0x02
420 #define ATM_AAL2_NOPHDR 0x04
421 #define ATM_REASSEMBLY_ERROR 0x08
426 #define AAL_UNKNOWN 0
432 #define AAL_SIGNALLING 6
433 #define AAL_OAMCELL 7
438 #define TRAF_UNKNOWN 0
445 #define TRAF_IPSILON 7
446 #define TRAF_UMTS_FP 8
447 #define TRAF_GPRS_NS 9
448 #define TRAF_SSCOP 10
453 #define TRAF_ST_UNKNOWN 0
458 #define TRAF_ST_VCMX_802_3_FCS 1
459 #define TRAF_ST_VCMX_802_4_FCS 2
460 #define TRAF_ST_VCMX_802_5_FCS 3
461 #define TRAF_ST_VCMX_FDDI_FCS 4
462 #define TRAF_ST_VCMX_802_6_FCS 5
463 #define TRAF_ST_VCMX_802_3 7
464 #define TRAF_ST_VCMX_802_4 8
465 #define TRAF_ST_VCMX_802_5 9
466 #define TRAF_ST_VCMX_FDDI 10
467 #define TRAF_ST_VCMX_802_6 11
468 #define TRAF_ST_VCMX_FRAGMENTS 12
469 #define TRAF_ST_VCMX_BPDU 13
474 #define TRAF_ST_LANE_LE_CTRL 1
475 #define TRAF_ST_LANE_802_3 2
476 #define TRAF_ST_LANE_802_5 3
477 #define TRAF_ST_LANE_802_3_MC 4
478 #define TRAF_ST_LANE_802_5_MC 5
483 #define TRAF_ST_IPSILON_FT0 1
484 #define TRAF_ST_IPSILON_FT1 2
485 #define TRAF_ST_IPSILON_FT2 3
499 uint32_t aal5t_chksum;
505 #define ASCEND_MAX_STR_LEN 64
507 #define ASCEND_PFX_WDS_X 1
508 #define ASCEND_PFX_WDS_R 2
509 #define ASCEND_PFX_WDD 3
510 #define ASCEND_PFX_ISDN_X 4
511 #define ASCEND_PFX_ISDN_R 5
512 #define ASCEND_PFX_ETHER 6
516 char user[ASCEND_MAX_STR_LEN];
518 char call_num[ASCEND_MAX_STR_LEN];
556 #define PHDR_802_11_PHY_UNKNOWN 0
557 #define PHDR_802_11_PHY_11_FHSS 1
558 #define PHDR_802_11_PHY_11_IR 2
559 #define PHDR_802_11_PHY_11_DSSS 3
560 #define PHDR_802_11_PHY_11B 4
561 #define PHDR_802_11_PHY_11A 5
562 #define PHDR_802_11_PHY_11G 6
563 #define PHDR_802_11_PHY_11N 7
564 #define PHDR_802_11_PHY_11AC 8
565 #define PHDR_802_11_PHY_11AD 9
566 #define PHDR_802_11_PHY_11AH 10
567 #define PHDR_802_11_PHY_11AX 11
568 #define PHDR_802_11_PHY_11BE 12
578 unsigned has_hop_set:1;
579 unsigned has_hop_pattern:1;
580 unsigned has_hop_index:1;
592 unsigned has_short_preamble:1;
602 unsigned has_channel_type:1;
603 unsigned has_turbo_type:1;
605 unsigned channel_type:2;
606 unsigned turbo_type:2;
612 #define PHDR_802_11A_CHANNEL_TYPE_NORMAL 0
613 #define PHDR_802_11A_CHANNEL_TYPE_HALF_CLOCKED 1
614 #define PHDR_802_11A_CHANNEL_TYPE_QUARTER_CLOCKED 2
624 #define PHDR_802_11A_TURBO_TYPE_NORMAL 0
625 #define PHDR_802_11A_TURBO_TYPE_TURBO 1
626 #define PHDR_802_11A_TURBO_TYPE_DYNAMIC_TURBO 2
627 #define PHDR_802_11A_TURBO_TYPE_STATIC_TURBO 3
646 #define PHDR_802_11G_MODE_NORMAL 0
647 #define PHDR_802_11G_MODE_SUPER_G 1
654 unsigned has_mcs_index:1;
655 unsigned has_bandwidth:1;
656 unsigned has_short_gi:1;
657 unsigned has_greenfield:1;
659 unsigned has_stbc_streams:1;
665 unsigned greenfield:1;
667 unsigned stbc_streams:2;
674 #define PHDR_802_11_BANDWIDTH_20_MHZ 0
675 #define PHDR_802_11_BANDWIDTH_40_MHZ 1
676 #define PHDR_802_11_BANDWIDTH_20_20L 2
677 #define PHDR_802_11_BANDWIDTH_20_20U 3
678 #define PHDR_802_11_BANDWIDTH_80_MHZ 4
679 #define PHDR_802_11_BANDWIDTH_40_40L 5
680 #define PHDR_802_11_BANDWIDTH_40_40U 6
681 #define PHDR_802_11_BANDWIDTH_20LL 7
682 #define PHDR_802_11_BANDWIDTH_20LU 8
683 #define PHDR_802_11_BANDWIDTH_20UL 9
684 #define PHDR_802_11_BANDWIDTH_20UU 10
685 #define PHDR_802_11_BANDWIDTH_160_MHZ 11
686 #define PHDR_802_11_BANDWIDTH_80_80L 12
687 #define PHDR_802_11_BANDWIDTH_80_80U 13
688 #define PHDR_802_11_BANDWIDTH_40LL 14
689 #define PHDR_802_11_BANDWIDTH_40LU 15
690 #define PHDR_802_11_BANDWIDTH_40UL 16
691 #define PHDR_802_11_BANDWIDTH_40UU 17
692 #define PHDR_802_11_BANDWIDTH_20LLL 18
693 #define PHDR_802_11_BANDWIDTH_20LLU 19
694 #define PHDR_802_11_BANDWIDTH_20LUL 20
695 #define PHDR_802_11_BANDWIDTH_20LUU 21
696 #define PHDR_802_11_BANDWIDTH_20ULL 22
697 #define PHDR_802_11_BANDWIDTH_20ULU 23
698 #define PHDR_802_11_BANDWIDTH_20UUL 24
699 #define PHDR_802_11_BANDWIDTH_20UUU 25
707 unsigned has_txop_ps_not_allowed:1;
708 unsigned has_short_gi:1;
709 unsigned has_short_gi_nsym_disambig:1;
710 unsigned has_ldpc_extra_ofdm_symbol:1;
711 unsigned has_beamformed:1;
712 unsigned has_bandwidth:1;
714 unsigned has_group_id:1;
715 unsigned has_partial_aid:1;
718 unsigned txop_ps_not_allowed:1;
720 unsigned short_gi_nsym_disambig:1;
721 unsigned ldpc_extra_ofdm_symbol:1;
722 unsigned beamformed:1;
728 uint16_t partial_aid;
739 #define PHDR_802_11AD_MIN_FREQUENCY 57000
740 #define PHDR_802_11AD_MAX_FREQUENCY 71000
742 #define IS_80211AD(frequency) (((frequency) >= PHDR_802_11AD_MIN_FREQUENCY) &&\
743 ((frequency) <= PHDR_802_11AD_MAX_FREQUENCY))
747 unsigned has_mcs_index:1;
757 unsigned has_mcs_index:1;
771 unsigned sta_id_known:1;
772 unsigned mcs_known:1;
773 unsigned coding_known:1;
774 unsigned rsv_known:1;
775 unsigned nsts_known:1;
777 unsigned spatial_config_known:1;
778 unsigned data_for_this_user:1;
780 unsigned ldpc_coding:1;
790 unsigned has_ru_mru_size:1;
792 unsigned has_bandwidth:1;
795 uint8_t ru_mru_size:4;
816 unsigned decrypted:1;
818 unsigned no_a_msdus:1;
823 unsigned has_channel:1;
824 unsigned has_frequency:1;
825 unsigned has_data_rate:1;
826 unsigned has_signal_percent:1;
827 unsigned has_noise_percent:1;
828 unsigned has_signal_dbm:1;
829 unsigned has_noise_dbm:1;
830 unsigned has_signal_db:1;
831 unsigned has_noise_db:1;
832 unsigned has_tsf_timestamp:1;
833 unsigned has_aggregate_info:1;
834 unsigned has_zero_length_psdu_type:1;
839 uint8_t signal_percent;
840 uint8_t noise_percent;
845 uint64_t tsf_timestamp;
846 uint32_t aggregate_flags;
847 uint32_t aggregate_id;
848 uint8_t zero_length_psdu_type;
854 #define PHDR_802_11_LAST_PART_OF_A_MPDU 0x00000001
855 #define PHDR_802_11_A_MPDU_DELIM_CRC_ERROR 0x00000002
860 #define PHDR_802_11_SOUNDING_PSDU 0
861 #define PHDR_802_11_DATA_NOT_CAPTURED 1
862 #define PHDR_802_11_0_LENGTH_PSDU_VENDOR_SPECIFIC 0xff
866 #define COSINE_MAX_IF_NAME_LEN 128
868 #define COSINE_ENCAP_TEST 1
869 #define COSINE_ENCAP_PPoATM 2
870 #define COSINE_ENCAP_PPoFR 3
871 #define COSINE_ENCAP_ATM 4
872 #define COSINE_ENCAP_FR 5
873 #define COSINE_ENCAP_HDLC 6
874 #define COSINE_ENCAP_PPP 7
875 #define COSINE_ENCAP_ETH 8
876 #define COSINE_ENCAP_UNKNOWN 99
878 #define COSINE_DIR_TX 1
879 #define COSINE_DIR_RX 2
884 char if_name[COSINE_MAX_IF_NAME_LEN];
897 #define IRDA_INCOMING 0x0000
898 #define IRDA_OUTGOING 0x0004
903 #define IRDA_LOG_MESSAGE 0x0100
904 #define IRDA_MISSED_MSG 0x0101
909 #define IRDA_CLASS_FRAME 0x0000
910 #define IRDA_CLASS_LOG 0x0100
911 #define IRDA_CLASS_MASK 0xFF00
929 #define MTP2_ANNEX_A_NOT_USED 0
930 #define MTP2_ANNEX_A_USED 1
931 #define MTP2_ANNEX_A_USED_UNKNOWN 2
935 uint8_t annex_a_used;
936 uint16_t link_number;
953 const char *input_name;
954 const char *stack_file;
958 uint32_t extra_length;
962 #define K12_PORT_DS0S 0x00010008
963 #define K12_PORT_DS1 0x00100008
964 #define K12_PORT_ATMPVC 0x01020000
979 } inner_pseudo_header;
1005 #define MAX_ERF_EHDR 16
1014 struct erf_ehdr ehdr_list[MAX_ERF_EHDR];
1023 #define SITA_FRAME_DIR_TXED (0x00)
1024 #define SITA_FRAME_DIR_RXED (0x01)
1025 #define SITA_FRAME_DIR (0x01)
1026 #define SITA_ERROR_NO_BUFFER (0x80)
1028 #define SITA_SIG_DSR (0x01)
1029 #define SITA_SIG_DTR (0x02)
1030 #define SITA_SIG_CTS (0x04)
1031 #define SITA_SIG_RTS (0x08)
1032 #define SITA_SIG_DCD (0x10)
1033 #define SITA_SIG_UNDEF1 (0x20)
1034 #define SITA_SIG_UNDEF2 (0x40)
1035 #define SITA_SIG_UNDEF3 (0x80)
1037 #define SITA_ERROR_TX_UNDERRUN (0x01)
1038 #define SITA_ERROR_TX_CTS_LOST (0x02)
1039 #define SITA_ERROR_TX_UART_ERROR (0x04)
1040 #define SITA_ERROR_TX_RETX_LIMIT (0x08)
1041 #define SITA_ERROR_TX_UNDEF1 (0x10)
1042 #define SITA_ERROR_TX_UNDEF2 (0x20)
1043 #define SITA_ERROR_TX_UNDEF3 (0x40)
1044 #define SITA_ERROR_TX_UNDEF4 (0x80)
1046 #define SITA_ERROR_RX_FRAMING (0x01)
1047 #define SITA_ERROR_RX_PARITY (0x02)
1048 #define SITA_ERROR_RX_COLLISION (0x04)
1049 #define SITA_ERROR_RX_FRAME_LONG (0x08)
1050 #define SITA_ERROR_RX_FRAME_SHORT (0x10)
1051 #define SITA_ERROR_RX_UNDEF1 (0x20)
1052 #define SITA_ERROR_RX_UNDEF2 (0x40)
1053 #define SITA_ERROR_RX_UNDEF3 (0x80)
1055 #define SITA_ERROR_RX_NONOCTET_ALIGNED (0x01)
1056 #define SITA_ERROR_RX_ABORT (0x02)
1057 #define SITA_ERROR_RX_CD_LOST (0x04)
1058 #define SITA_ERROR_RX_DPLL (0x08)
1059 #define SITA_ERROR_RX_OVERRUN (0x10)
1060 #define SITA_ERROR_RX_FRAME_LEN_VIOL (0x20)
1061 #define SITA_ERROR_RX_CRC (0x40)
1062 #define SITA_ERROR_RX_BREAK (0x80)
1064 #define SITA_PROTO_UNUSED (0x00)
1065 #define SITA_PROTO_BOP_LAPB (0x01)
1066 #define SITA_PROTO_ETHERNET (0x02)
1067 #define SITA_PROTO_ASYNC_INTIO (0x03)
1068 #define SITA_PROTO_ASYNC_BLKIO (0x04)
1069 #define SITA_PROTO_ALC (0x05)
1070 #define SITA_PROTO_UTS (0x06)
1071 #define SITA_PROTO_PPP_HDLC (0x07)
1072 #define SITA_PROTO_SDLC (0x08)
1073 #define SITA_PROTO_TOKENRING (0x09)
1074 #define SITA_PROTO_I2C (0x10)
1075 #define SITA_PROTO_DPM_LINK (0x11)
1076 #define SITA_PROTO_BOP_FRL (0x12)
1080 uint8_t sita_signals;
1081 uint8_t sita_errors1;
1082 uint8_t sita_errors2;
1092 #define BTHCI_CHANNEL_COMMAND 1
1093 #define BTHCI_CHANNEL_ACL 2
1094 #define BTHCI_CHANNEL_SCO 3
1095 #define BTHCI_CHANNEL_EVENT 4
1096 #define BTHCI_CHANNEL_ISO 5
1100 uint16_t adapter_id;
1123 uint32_t tdma_frame;
1128 #define GSM_UM_CHANNEL_UNKNOWN 0
1129 #define GSM_UM_CHANNEL_BCCH 1
1130 #define GSM_UM_CHANNEL_SDCCH 2
1131 #define GSM_UM_CHANNEL_SACCH 3
1132 #define GSM_UM_CHANNEL_FACCH 4
1133 #define GSM_UM_CHANNEL_CCCH 5
1134 #define GSM_UM_CHANNEL_RACH 6
1135 #define GSM_UM_CHANNEL_AGCH 7
1136 #define GSM_UM_CHANNEL_PCH 8
1142 uint8_t nicno_offset;
1146 uint16_t eth_offset;
1148 uint8_t l_pcb_offset;
1150 uint8_t vlantag_offset;
1151 uint8_t coreid_offset;
1152 uint8_t srcnodeid_offset;
1153 uint8_t destnodeid_offset;
1154 uint8_t clflags_offset;
1155 uint8_t src_vmname_len_offset;
1156 uint8_t dst_vmname_len_offset;
1157 uint8_t ns_activity_offset;
1158 uint8_t data_offset;
1167 #define LLCP_PHDR_FLAG_SENT 0
1182 uint32_t descLength;
1183 uint8_t* description;
1194 const char *pathname;
1279 #define REC_TYPE_PACKET 0
1280 #define REC_TYPE_FT_SPECIFIC_EVENT 1
1281 #define REC_TYPE_FT_SPECIFIC_REPORT 2
1282 #define REC_TYPE_SYSCALL 3
1283 #define REC_TYPE_SYSTEMD_JOURNAL_EXPORT 4
1284 #define REC_TYPE_CUSTOM_BLOCK 5
1291 uint32_t interface_id;
1324 #define PACK_FLAGS_DIRECTION_MASK 0x00000003
1325 #define PACK_FLAGS_DIRECTION_SHIFT 0
1326 #define PACK_FLAGS_DIRECTION(pack_flags) (((pack_flags) & PACK_FLAGS_DIRECTION_MASK) >> PACK_FLAGS_DIRECTION_SHIFT)
1327 #define PACK_FLAGS_DIRECTION_UNKNOWN 0
1328 #define PACK_FLAGS_DIRECTION_INBOUND 1
1329 #define PACK_FLAGS_DIRECTION_OUTBOUND 2
1332 #define PACK_FLAGS_RECEPTION_TYPE_MASK 0x0000001C
1333 #define PACK_FLAGS_RECEPTION_TYPE_SHIFT 2
1334 #define PACK_FLAGS_RECEPTION_TYPE(pack_flags) (((pack_flags) & PACK_FLAGS_RECEPTION_TYPE_MASK) >> PACK_FLAGS_RECEPTION_TYPE_SHIFT)
1335 #define PACK_FLAGS_RECEPTION_TYPE_UNSPECIFIED 0
1336 #define PACK_FLAGS_RECEPTION_TYPE_UNICAST 1
1337 #define PACK_FLAGS_RECEPTION_TYPE_MULTICAST 2
1338 #define PACK_FLAGS_RECEPTION_TYPE_BROADCAST 3
1339 #define PACK_FLAGS_RECEPTION_TYPE_PROMISCUOUS 4
1342 #define PACK_FLAGS_FCS_LENGTH_MASK 0x000001E0
1343 #define PACK_FLAGS_FCS_LENGTH_SHIFT 5
1344 #define PACK_FLAGS_FCS_LENGTH(pack_flags) (((pack_flags) & PACK_FLAGS_FCS_LENGTH_MASK) >> PACK_FLAGS_FCS_LENGTH_SHIFT)
1347 #define PACK_FLAGS_RESERVED_MASK 0x0000FE00
1352 #define PACK_FLAGS_CRC_ERROR 0x01000000
1353 #define PACK_FLAGS_PACKET_TOO_LONG 0x02000000
1354 #define PACK_FLAGS_PACKET_TOO_SHORT 0x04000000
1355 #define PACK_FLAGS_WRONG_INTER_FRAME_GAP 0x08000000
1356 #define PACK_FLAGS_UNALIGNED_FRAME 0x10000000
1357 #define PACK_FLAGS_START_FRAME_DELIMITER_ERROR 0x20000000
1358 #define PACK_FLAGS_PREAMBLE_ERROR 0x40000000
1359 #define PACK_FLAGS_SYMBOL_ERROR 0x80000000
1362 #define PACK_FLAGS_VALUE(direction, reception_type, fcs_length, ll_dependent_errors) \
1363 (((direction) << 30) | \
1364 ((reception_type) << 27) | \
1365 ((fcs_length) << 23) | \
1366 (ll_dependent_errors))
1369 unsigned record_type;
1370 uint32_t record_len;
1374 const char *pathname;
1375 unsigned record_type;
1381 uint32_t event_filelen;
1382 uint16_t event_type;
1389 uint32_t record_len;
1400 } nflx_custom_data_header;
1401 } custom_data_header;
1404 #define BBLOG_TYPE_EVENT_BLOCK 1
1405 #define BBLOG_TYPE_SKIPPED_BLOCK 2
1429 #define WTAP_NSTIME_32BIT_SECS_MAX ((time_t)(sizeof(time_t) > sizeof(int32_t) ? UINT32_MAX : INT32_MAX))
1433 uint32_t presence_flags;
1434 unsigned section_number;
1438 bool ts_rel_cap_valid;
1448 bool block_was_modified;
1479 #define WTAP_HAS_TS 0x00000001
1480 #define WTAP_HAS_CAP_LEN 0x00000002
1481 #define WTAP_HAS_INTERFACE_ID 0x00000004
1482 #define WTAP_HAS_SECTION_NUMBER 0x00000008
1485 #define MAXNAMELEN 64
1491 char ip[WS_INET_ADDRSTRLEN];
1492 char name[MAXNAMELEN];
1498 char ip6[WS_INET6_ADDRSTRLEN];
1499 char name[MAXNAMELEN];
1549 #define WTAP_DUMP_PARAMS_INIT {.snaplen=0}
1570 int (*wslua_can_write_encap)(int,
void*);
1617 bool is_capture_file;
1620 const char *extensions;
1650 WTAP_OPEN_NOT_MINE = 0,
1652 WTAP_OPEN_ERROR = -1
1653 } wtap_open_return_val;
1655 typedef wtap_open_return_val (*wtap_open_routine_t)(
struct wtap*,
int *,
1677 OPEN_INFO_MAGIC = 0,
1678 OPEN_INFO_HEURISTIC = 1
1681 WS_DLL_PUBLIC
void init_open_routines(
void);
1683 void cleanup_open_routines(
void);
1713 wtap_open_type type;
1714 wtap_open_routine_t open_routine;
1715 const char *extensions;
1716 char **extensions_set;
1719 WS_DLL_PUBLIC
struct open_info *open_routines;
1724 #define WTAP_COMMENT_PER_SECTION 0x00000001
1725 #define WTAP_COMMENT_PER_INTERFACE 0x00000002
1726 #define WTAP_COMMENT_PER_PACKET 0x00000004
1734 OPTION_NOT_SUPPORTED,
1735 ONE_OPTION_SUPPORTED,
1736 MULTIPLE_OPTIONS_SUPPORTED
1744 option_support_t support;
1747 #define OPTION_TYPES_SUPPORTED(option_type_array) \
1748 array_length(option_type_array), option_type_array
1750 #define NO_OPTIONS_SUPPORTED \
1758 BLOCK_NOT_SUPPORTED,
1759 ONE_BLOCK_SUPPORTED,
1760 MULTIPLE_BLOCKS_SUPPORTED
1767 wtap_block_type_t type;
1768 block_support_t support;
1769 size_t num_supported_options;
1773 #define BLOCKS_SUPPORTED(block_type_array) \
1774 array_length(block_type_array), block_type_array
1840 #define WTAP_TYPE_AUTO 0
1848 void wtap_init(
bool load_wiretap_plugins);
1864 char **err_info,
bool do_random);
1882 typedef void (*wtap_new_ipv6_callback_t) (
const void *addrp,
const char *name,
const bool static_entry);
1884 void wtap_set_cb_new_ipv6(
wtap *wth, wtap_new_ipv6_callback_t add_new_ipv6);
1911 char **err_info, int64_t *offset);
1931 Buffer *buf,
int *err,
char **err_info);
1939 void wtap_rec_reset(
wtap_rec *rec);
1943 void wtap_rec_cleanup(
wtap_rec *rec);
1950 WTAP_GZIP_COMPRESSED,
1951 WTAP_ZSTD_COMPRESSED,
1953 } wtap_compression_type;
1956 wtap_compression_type wtap_get_compression_type(
wtap *wth);
1958 const char *wtap_compression_type_description(wtap_compression_type compression_type);
1960 const char *wtap_compression_type_extension(wtap_compression_type compression_type);
1962 GSList *wtap_get_all_compression_type_extensions_list(
void);
1971 int64_t wtap_file_size(
wtap *wth,
int *err);
1973 unsigned wtap_snapshot_length(
wtap *wth);
1975 int wtap_file_type_subtype(
wtap *wth);
1977 int wtap_file_encap(
wtap *wth);
1979 int wtap_file_tsprec(
wtap *wth);
2087 const char* line_end);
2151 void wtap_fdclose(
wtap *wth);
2155 bool wtap_fdreopen(
wtap *wth,
const char *filename,
int *err);
2167 bool wtap_dump_can_open(
int filetype);
2263 int *err,
char **err_info);
2283 int file_type_subtype, wtap_compression_type compression_type,
2301 int *err,
char **err_info);
2317 int *err,
char **err_info);
2335 int *err,
char **err_info);
2339 int wtap_dump_file_type_subtype(
wtap_dumper *wdh);
2343 void wtap_set_bytes_dumped(
wtap_dumper *wdh, int64_t bytes_dumped);
2350 void wtap_dump_discard_name_resolution(
wtap_dumper *wdh);
2352 void wtap_dump_discard_decryption_secrets(
wtap_dumper *wdh);
2372 int *err,
char **err_info);
2434 FT_SORT_BY_DESCRIPTION
2444 const GArray *file_encaps, uint32_t required_comment_types,
2445 ft_sort_order sort_order);
2455 const char *wtap_file_type_subtype_description(
int file_type_subtype);
2457 const char *wtap_file_type_subtype_name(
int file_type_subtype);
2459 int wtap_name_to_file_type_subtype(
const char *name);
2461 int wtap_pcap_file_type_subtype(
void);
2463 int wtap_pcap_nsec_file_type_subtype(
void);
2465 int wtap_pcapng_file_type_subtype(
void);
2473 wtap_block_type_t type);
2481 wtap_block_type_t type,
unsigned opttype);
2504 GSList *wtap_get_all_capture_file_extensions_list(
void);
2519 GSList *wtap_get_all_file_extensions_list(
void);
2527 void wtap_free_extensions_list(GSList *extensions);
2534 const char *wtap_default_file_extension(
int file_type_subtype);
2547 GSList *wtap_get_file_extensions_list(
int file_type_subtype,
bool include_compressed);
2550 const char *wtap_encap_name(
int encap);
2552 const char *wtap_encap_description(
int encap);
2554 int wtap_name_to_encap(
const char *short_name);
2557 const char* wtap_tsprec_string(
int tsprec);
2560 const char *wtap_strerror(
int err);
2564 int wtap_get_num_file_type_extensions(
void);
2566 int wtap_get_num_encap_types(
void);
2570 const char *wtap_get_file_extension_type_name(
int extension_type);
2572 GSList *wtap_get_file_extension_type_extensions(
unsigned extension_type);
2579 void (*register_wtap_module)(void);
2583 void wtap_register_plugin(
const wtap_plugin *plug);
2594 void wtap_register_open_info(
struct open_info *oi,
const bool first_routine);
2596 bool wtap_has_open_info(
const char *name);
2598 bool wtap_uses_lua_filehandler(
const wtap* wth);
2600 void wtap_deregister_open_info(
const char *name);
2603 unsigned int open_info_name_to_type(
const char *name);
2607 void wtap_deregister_file_type_subtype(
const int file_type_subtype);
2610 int wtap_register_encap_type(
const char *description,
const char *name);
2614 void wtap_cleanup(
void);
2619 #define WTAP_ERR_NOT_REGULAR_FILE -1
2622 #define WTAP_ERR_RANDOM_OPEN_PIPE -2
2625 #define WTAP_ERR_FILE_UNKNOWN_FORMAT -3
2628 #define WTAP_ERR_UNSUPPORTED -4
2632 #define WTAP_ERR_CANT_WRITE_TO_PIPE -5
2635 #define WTAP_ERR_CANT_OPEN -6
2638 #define WTAP_ERR_UNWRITABLE_FILE_TYPE -7
2641 #define WTAP_ERR_UNWRITABLE_ENCAP -8
2645 #define WTAP_ERR_ENCAP_PER_PACKET_UNSUPPORTED -9
2648 #define WTAP_ERR_CANT_WRITE -10
2651 #define WTAP_ERR_CANT_CLOSE -11
2654 #define WTAP_ERR_SHORT_READ -12
2657 #define WTAP_ERR_BAD_FILE -13
2660 #define WTAP_ERR_SHORT_WRITE -14
2663 #define WTAP_ERR_UNC_OVERFLOW -15
2666 #define WTAP_ERR_RANDOM_OPEN_STDIN -16
2669 #define WTAP_ERR_COMPRESSION_NOT_SUPPORTED -17
2672 #define WTAP_ERR_CANT_SEEK -18
2675 #define WTAP_ERR_CANT_SEEK_COMPRESSED -19
2678 #define WTAP_ERR_DECOMPRESS -20
2681 #define WTAP_ERR_INTERNAL -21
2684 #define WTAP_ERR_PACKET_TOO_LARGE -22
2688 #define WTAP_ERR_CHECK_WSLUA -23
2692 #define WTAP_ERR_UNWRITABLE_REC_TYPE -24
2695 #define WTAP_ERR_UNWRITABLE_REC_DATA -25
2698 #define WTAP_ERR_DECOMPRESSION_NOT_SUPPORTED -26
2701 #define WTAP_ERR_TIME_STAMP_NOT_SUPPORTED -27
Definition: packet-eth.h:15
GList * ipv6_addr_list
Definition: wtap.h:1507
GList * ipv4_addr_list
Definition: wtap.h:1506
wtap_wslua_file_info_t * wslua_info
Definition: wtap.h:1837
const char * name
Definition: wtap.h:1786
const char * additional_file_extensions
Definition: wtap.h:1800
int(* can_write_encap)(int)
Definition: wtap.h:1825
const struct supported_block_type * supported_blocks
Definition: wtap.h:1815
bool writing_must_seek
Definition: wtap.h:1805
const char * description
Definition: wtap.h:1780
bool(* dump_open)(wtap_dumper *, int *, char **)
Definition: wtap.h:1831
size_t num_supported_blocks
Definition: wtap.h:1810
const char * default_file_extension
Definition: wtap.h:1792
Definition: wtap_opttypes.c:85
const GArray * nrbs_growing
Definition: wtap.h:1535
const GArray * dsbs_growing
Definition: wtap.h:1539
int tsprec
Definition: wtap.h:1529
GArray * shb_hdrs
Definition: wtap.h:1530
int encap
Definition: wtap.h:1527
bool dont_copy_idbs
Definition: wtap.h:1545
GArray * dsbs_initial
Definition: wtap.h:1538
wtapng_iface_descriptions_t * idb_inf
Definition: wtap.h:1534
const GArray * mevs_growing
Definition: wtap.h:1542
const GArray * shb_iface_to_global
Definition: wtap.h:1531
int snaplen
Definition: wtap.h:1528
Definition: wtap-int.h:97
Definition: file_wrappers.c:177
Definition: wtap-int.h:37
Definition: wtap_opttypes.h:218
struct wtap_dump_params wtap_dump_params
WS_DLL_PUBLIC wtap_dumper * wtap_dump_open_tempfile(const char *tmpdir, char **filenamep, const char *pfx, int file_type_subtype, wtap_compression_type compression_type, const wtap_dump_params *params, int *err, char **err_info)
Creates a dumper for a temporary file.
Definition: file_access.c:2440
WS_DLL_PUBLIC void wtap_buffer_append_epdu_tag(Buffer *buf, uint16_t epdu_tag, const uint8_t *data, uint16_t data_len)
Definition: wtap.c:2046
void(* wtap_new_secrets_callback_t)(uint32_t secrets_type, const void *secrets, unsigned size)
Definition: wtap.h:1890
WS_DLL_PUBLIC bool wtap_seek_read(wtap *wth, int64_t seek_off, wtap_rec *rec, Buffer *buf, int *err, char **err_info)
Definition: wtap.c:1916
WS_DLL_PUBLIC void wtap_init(bool load_wiretap_plugins)
Initialize the Wiretap library.
Definition: wtap.c:2127
WS_DLL_PUBLIC int wtap_plugins_supported(void)
Definition: wtap.c:52
WS_DLL_PUBLIC wtap_block_t wtap_file_get_shb(wtap *wth, unsigned shb_num)
Gets existing section header block, not for new file.
Definition: wtap.c:129
WS_DLL_PUBLIC void wtap_dump_params_cleanup(wtap_dump_params *params)
Definition: wtap.c:607
WS_DLL_PUBLIC bool wtap_dump_close(wtap_dumper *wdh, bool *needs_reload, int *err, char **err_info)
Definition: file_access.c:2666
WS_DLL_PUBLIC wtap_block_t wtap_get_next_interface_description(wtap *wth)
Gets next interface description.
Definition: wtap.c:193
WS_DLL_PUBLIC void wtap_buffer_append_epdu_string(Buffer *buf, uint16_t epdu_tag, const char *val)
Definition: wtap.c:2093
WS_DLL_PUBLIC void wtap_free_idb_info(wtapng_iface_descriptions_t *idb_info)
Free's a interface description block and all of its members.
Definition: wtap.c:362
WS_DLL_PUBLIC void wtap_dump_params_discard_decryption_secrets(wtap_dump_params *params)
Definition: wtap.c:594
WS_DLL_PUBLIC int wtap_dump_required_file_encap_type(const GArray *file_encaps)
Definition: file_access.c:1455
WS_DLL_PUBLIC void wtap_dump_params_discard_name_resolution(wtap_dump_params *params)
Definition: wtap.c:588
WS_DLL_PUBLIC void wtap_dump_params_init_no_idbs(wtap_dump_params *params, wtap *wth)
Definition: wtap.c:567
WS_DLL_PUBLIC void wtap_buffer_append_epdu_uint(Buffer *buf, uint16_t epdu_tag, uint32_t val)
Definition: wtap.c:2077
WS_DLL_PUBLIC unsigned wtap_file_get_shb_global_interface_id(wtap *wth, unsigned shb_num, uint32_t interface_id)
Gets the unique interface id for a SHB's interface.
Definition: wtap.c:138
WS_DLL_PUBLIC unsigned wtap_file_get_num_shbs(wtap *wth)
Gets number of section header blocks.
Definition: wtap.c:123
WS_DLL_PUBLIC void wtap_dump_params_init(wtap_dump_params *params, wtap *wth)
Definition: wtap.c:541
WS_DLL_PUBLIC GArray * wtap_get_writable_file_types_subtypes(ft_sort_order sort_order)
Definition: file_access.c:1733
WS_DLL_PUBLIC void wtap_write_shb_comment(wtap *wth, char *comment)
Sets or replaces the section header comment.
Definition: wtap.c:173
WS_DLL_PUBLIC GArray * wtap_get_savable_file_types_subtypes_for_file(int file_type_subtype, const GArray *file_encaps, uint32_t required_comment_types, ft_sort_order sort_order)
Definition: file_access.c:1621
WS_DLL_PUBLIC int64_t wtap_read_so_far(wtap *wth)
Definition: wtap.c:1867
WS_DLL_PUBLIC void wtap_file_add_decryption_secrets(wtap *wth, const wtap_block_t dsb)
Adds a Decryption Secrets Block to the open wiretap session.
Definition: wtap.c:234
WS_DLL_PUBLIC wtap_dumper * wtap_dump_fdopen(int fd, int file_type_subtype, wtap_compression_type compression_type, const wtap_dump_params *params, int *err, char **err_info)
Creates a dumper for an existing file descriptor.
Definition: file_access.c:2502
WS_DLL_PUBLIC void wtap_cleareof(wtap *wth)
Definition: wtap.c:1596
struct addrinfo_lists addrinfo_lists_t
WS_DLL_PUBLIC wtap_dumper * wtap_dump_open_stdout(int file_type_subtype, wtap_compression_type compression_type, const wtap_dump_params *params, int *err, char **err_info)
Creates a dumper for the standard output.
Definition: file_access.c:2537
WS_DLL_PUBLIC unsigned wtap_file_get_num_dsbs(wtap *wth)
Gets number of decryption secrets blocks.
Definition: wtap.c:216
WS_DLL_PUBLIC void wtap_close(wtap *wth)
Definition: wtap.c:1566
WS_DLL_PUBLIC wtapng_iface_descriptions_t * wtap_file_get_idb_info(wtap *wth)
Gets existing interface descriptions.
Definition: wtap.c:181
WS_DLL_PUBLIC struct wtap * wtap_open_offline(const char *filename, unsigned int type, int *err, char **err_info, bool do_random)
Definition: file_access.c:778
WS_DLL_PUBLIC bool wtap_dump_can_write_encap(int file_type_subtype, int encap)
Definition: file_access.c:1468
WS_DLL_PUBLIC bool wtap_dump_can_write(const GArray *file_encaps, uint32_t required_comment_types)
Definition: file_access.c:1570
WS_DLL_PUBLIC wtap_block_t wtap_file_get_dsb(wtap *wth, unsigned dsb_num)
Gets existing decryption secrets block, not for new file.
Definition: wtap.c:225
WS_DLL_PUBLIC bool wtap_dump_can_compress(int file_type_subtype)
Definition: file_access.c:2268
WS_DLL_PUBLIC wtap_dumper * wtap_dump_open(const char *filename, int file_type_subtype, wtap_compression_type compression_type, const wtap_dump_params *params, int *err, char **err_info)
Opens a new capture file for writing.
Definition: file_access.c:2401
WS_DLL_PUBLIC bool wtap_file_discard_decryption_secrets(wtap *wth)
Definition: wtap.c:243
WS_DLL_PUBLIC bool wtap_read(wtap *wth, wtap_rec *rec, Buffer *buf, int *err, char **err_info, int64_t *offset)
Definition: wtap.c:1728
WS_DLL_PUBLIC char * wtap_get_debug_if_descr(const wtap_block_t if_descr, const int indent, const char *line_end)
Gets a debug string of an interface description.
Definition: wtap.c:372
WS_DLL_PUBLIC int wtap_buffer_append_epdu_end(Buffer *buf)
Definition: wtap.c:2110
WS_DLL_PUBLIC block_support_t wtap_file_type_subtype_supports_block(int file_type_subtype, wtap_block_type_t type)
Definition: file_access.c:1908
WS_DLL_PUBLIC wtap_block_t wtap_file_get_nrb(wtap *wth)
Gets existing name resolution block, not for new file.
Definition: wtap.c:511
WS_DLL_PUBLIC void wtap_sequential_close(wtap *wth)
Definition: wtap.c:1533
void(* wtap_new_ipv4_callback_t)(const unsigned addr, const char *name, const bool static_entry)
Definition: wtap.h:1878
WS_DLL_PUBLIC option_support_t wtap_file_type_subtype_supports_option(int file_type_subtype, wtap_block_type_t type, unsigned opttype)
Definition: file_access.c:1943