14 #include <wsutil/buffer.h> 16 #include <wsutil/inet_addr.h> 17 #include "wtap_opttypes.h" 18 #include "ws_symbol_export.h" 19 #include "ws_attributes.h" 21 #include "wsutil/plugins.h" 82 #define WTAP_ENCAP_PER_PACKET -1 83 #define WTAP_ENCAP_UNKNOWN 0 84 #define WTAP_ENCAP_ETHERNET 1 85 #define WTAP_ENCAP_TOKEN_RING 2 86 #define WTAP_ENCAP_SLIP 3 87 #define WTAP_ENCAP_PPP 4 88 #define WTAP_ENCAP_FDDI 5 89 #define WTAP_ENCAP_FDDI_BITSWAPPED 6 90 #define WTAP_ENCAP_RAW_IP 7 91 #define WTAP_ENCAP_ARCNET 8 92 #define WTAP_ENCAP_ARCNET_LINUX 9 93 #define WTAP_ENCAP_ATM_RFC1483 10 94 #define WTAP_ENCAP_LINUX_ATM_CLIP 11 95 #define WTAP_ENCAP_LAPB 12 96 #define WTAP_ENCAP_ATM_PDUS 13 97 #define WTAP_ENCAP_ATM_PDUS_UNTRUNCATED 14 98 #define WTAP_ENCAP_NULL 15 99 #define WTAP_ENCAP_ASCEND 16 100 #define WTAP_ENCAP_ISDN 17 101 #define WTAP_ENCAP_IP_OVER_FC 18 102 #define WTAP_ENCAP_PPP_WITH_PHDR 19 103 #define WTAP_ENCAP_IEEE_802_11 20 104 #define WTAP_ENCAP_IEEE_802_11_PRISM 21 105 #define WTAP_ENCAP_IEEE_802_11_WITH_RADIO 22 106 #define WTAP_ENCAP_IEEE_802_11_RADIOTAP 23 107 #define WTAP_ENCAP_IEEE_802_11_AVS 24 108 #define WTAP_ENCAP_SLL 25 109 #define WTAP_ENCAP_FRELAY 26 110 #define WTAP_ENCAP_FRELAY_WITH_PHDR 27 111 #define WTAP_ENCAP_CHDLC 28 112 #define WTAP_ENCAP_CISCO_IOS 29 113 #define WTAP_ENCAP_LOCALTALK 30 114 #define WTAP_ENCAP_OLD_PFLOG 31 115 #define WTAP_ENCAP_HHDLC 32 116 #define WTAP_ENCAP_DOCSIS 33 117 #define WTAP_ENCAP_COSINE 34 118 #define WTAP_ENCAP_WFLEET_HDLC 35 119 #define WTAP_ENCAP_SDLC 36 120 #define WTAP_ENCAP_TZSP 37 121 #define WTAP_ENCAP_ENC 38 122 #define WTAP_ENCAP_PFLOG 39 123 #define WTAP_ENCAP_CHDLC_WITH_PHDR 40 124 #define WTAP_ENCAP_BLUETOOTH_H4 41 125 #define WTAP_ENCAP_MTP2 42 126 #define WTAP_ENCAP_MTP3 43 127 #define WTAP_ENCAP_IRDA 44 128 #define WTAP_ENCAP_USER0 45 129 #define WTAP_ENCAP_USER1 46 130 #define WTAP_ENCAP_USER2 47 131 #define WTAP_ENCAP_USER3 48 132 #define WTAP_ENCAP_USER4 49 133 #define WTAP_ENCAP_USER5 50 134 #define WTAP_ENCAP_USER6 51 135 #define WTAP_ENCAP_USER7 52 136 #define WTAP_ENCAP_USER8 53 137 #define WTAP_ENCAP_USER9 54 138 #define WTAP_ENCAP_USER10 55 139 #define WTAP_ENCAP_USER11 56 140 #define WTAP_ENCAP_USER12 57 141 #define WTAP_ENCAP_USER13 58 142 #define WTAP_ENCAP_USER14 59 143 #define WTAP_ENCAP_USER15 60 144 #define WTAP_ENCAP_SYMANTEC 61 145 #define WTAP_ENCAP_APPLE_IP_OVER_IEEE1394 62 146 #define WTAP_ENCAP_BACNET_MS_TP 63 147 #define WTAP_ENCAP_NETTL_RAW_ICMP 64 148 #define WTAP_ENCAP_NETTL_RAW_ICMPV6 65 149 #define WTAP_ENCAP_GPRS_LLC 66 150 #define WTAP_ENCAP_JUNIPER_ATM1 67 151 #define WTAP_ENCAP_JUNIPER_ATM2 68 152 #define WTAP_ENCAP_REDBACK 69 153 #define WTAP_ENCAP_NETTL_RAW_IP 70 154 #define WTAP_ENCAP_NETTL_ETHERNET 71 155 #define WTAP_ENCAP_NETTL_TOKEN_RING 72 156 #define WTAP_ENCAP_NETTL_FDDI 73 157 #define WTAP_ENCAP_NETTL_UNKNOWN 74 158 #define WTAP_ENCAP_MTP2_WITH_PHDR 75 159 #define WTAP_ENCAP_JUNIPER_PPPOE 76 160 #define WTAP_ENCAP_GCOM_TIE1 77 161 #define WTAP_ENCAP_GCOM_SERIAL 78 162 #define WTAP_ENCAP_NETTL_X25 79 163 #define WTAP_ENCAP_K12 80 164 #define WTAP_ENCAP_JUNIPER_MLPPP 81 165 #define WTAP_ENCAP_JUNIPER_MLFR 82 166 #define WTAP_ENCAP_JUNIPER_ETHER 83 167 #define WTAP_ENCAP_JUNIPER_PPP 84 168 #define WTAP_ENCAP_JUNIPER_FRELAY 85 169 #define WTAP_ENCAP_JUNIPER_CHDLC 86 170 #define WTAP_ENCAP_JUNIPER_GGSN 87 171 #define WTAP_ENCAP_LINUX_LAPD 88 172 #define WTAP_ENCAP_CATAPULT_DCT2000 89 173 #define WTAP_ENCAP_BER 90 174 #define WTAP_ENCAP_JUNIPER_VP 91 175 #define WTAP_ENCAP_USB_FREEBSD 92 176 #define WTAP_ENCAP_IEEE802_16_MAC_CPS 93 177 #define WTAP_ENCAP_NETTL_RAW_TELNET 94 178 #define WTAP_ENCAP_USB_LINUX 95 179 #define WTAP_ENCAP_MPEG 96 180 #define WTAP_ENCAP_PPI 97 181 #define WTAP_ENCAP_ERF 98 182 #define WTAP_ENCAP_BLUETOOTH_H4_WITH_PHDR 99 183 #define WTAP_ENCAP_SITA 100 184 #define WTAP_ENCAP_SCCP 101 185 #define WTAP_ENCAP_BLUETOOTH_HCI 102 186 #define WTAP_ENCAP_IPMB 103 187 #define WTAP_ENCAP_IEEE802_15_4 104 188 #define WTAP_ENCAP_X2E_XORAYA 105 189 #define WTAP_ENCAP_FLEXRAY 106 190 #define WTAP_ENCAP_LIN 107 191 #define WTAP_ENCAP_MOST 108 192 #define WTAP_ENCAP_CAN20B 109 193 #define WTAP_ENCAP_LAYER1_EVENT 110 194 #define WTAP_ENCAP_X2E_SERIAL 111 195 #define WTAP_ENCAP_I2C 112 196 #define WTAP_ENCAP_IEEE802_15_4_NONASK_PHY 113 197 #define WTAP_ENCAP_TNEF 114 198 #define WTAP_ENCAP_USB_LINUX_MMAPPED 115 199 #define WTAP_ENCAP_GSM_UM 116 200 #define WTAP_ENCAP_DPNSS 117 201 #define WTAP_ENCAP_PACKETLOGGER 118 202 #define WTAP_ENCAP_NSTRACE_1_0 119 203 #define WTAP_ENCAP_NSTRACE_2_0 120 204 #define WTAP_ENCAP_FIBRE_CHANNEL_FC2 121 205 #define WTAP_ENCAP_FIBRE_CHANNEL_FC2_WITH_FRAME_DELIMS 122 206 #define WTAP_ENCAP_JPEG_JFIF 123 207 #define WTAP_ENCAP_IPNET 124 208 #define WTAP_ENCAP_SOCKETCAN 125 209 #define WTAP_ENCAP_IEEE_802_11_NETMON 126 210 #define WTAP_ENCAP_IEEE802_15_4_NOFCS 127 211 #define WTAP_ENCAP_RAW_IPFIX 128 212 #define WTAP_ENCAP_RAW_IP4 129 213 #define WTAP_ENCAP_RAW_IP6 130 214 #define WTAP_ENCAP_LAPD 131 215 #define WTAP_ENCAP_DVBCI 132 216 #define WTAP_ENCAP_MUX27010 133 217 #define WTAP_ENCAP_MIME 134 218 #define WTAP_ENCAP_NETANALYZER 135 219 #define WTAP_ENCAP_NETANALYZER_TRANSPARENT 136 220 #define WTAP_ENCAP_IP_OVER_IB_SNOOP 137 221 #define WTAP_ENCAP_MPEG_2_TS 138 222 #define WTAP_ENCAP_PPP_ETHER 139 223 #define WTAP_ENCAP_NFC_LLCP 140 224 #define WTAP_ENCAP_NFLOG 141 225 #define WTAP_ENCAP_V5_EF 142 226 #define WTAP_ENCAP_BACNET_MS_TP_WITH_PHDR 143 227 #define WTAP_ENCAP_IXVERIWAVE 144 228 #define WTAP_ENCAP_SDH 145 229 #define WTAP_ENCAP_DBUS 146 230 #define WTAP_ENCAP_AX25_KISS 147 231 #define WTAP_ENCAP_AX25 148 232 #define WTAP_ENCAP_SCTP 149 233 #define WTAP_ENCAP_INFINIBAND 150 234 #define WTAP_ENCAP_JUNIPER_SVCS 151 235 #define WTAP_ENCAP_USBPCAP 152 236 #define WTAP_ENCAP_RTAC_SERIAL 153 237 #define WTAP_ENCAP_BLUETOOTH_LE_LL 154 238 #define WTAP_ENCAP_WIRESHARK_UPPER_PDU 155 239 #define WTAP_ENCAP_STANAG_4607 156 240 #define WTAP_ENCAP_STANAG_5066_D_PDU 157 241 #define WTAP_ENCAP_NETLINK 158 242 #define WTAP_ENCAP_BLUETOOTH_LINUX_MONITOR 159 243 #define WTAP_ENCAP_BLUETOOTH_BREDR_BB 160 244 #define WTAP_ENCAP_BLUETOOTH_LE_LL_WITH_PHDR 161 245 #define WTAP_ENCAP_NSTRACE_3_0 162 246 #define WTAP_ENCAP_LOGCAT 163 247 #define WTAP_ENCAP_LOGCAT_BRIEF 164 248 #define WTAP_ENCAP_LOGCAT_PROCESS 165 249 #define WTAP_ENCAP_LOGCAT_TAG 166 250 #define WTAP_ENCAP_LOGCAT_THREAD 167 251 #define WTAP_ENCAP_LOGCAT_TIME 168 252 #define WTAP_ENCAP_LOGCAT_THREADTIME 169 253 #define WTAP_ENCAP_LOGCAT_LONG 170 254 #define WTAP_ENCAP_PKTAP 171 255 #define WTAP_ENCAP_EPON 172 256 #define WTAP_ENCAP_IPMI_TRACE 173 257 #define WTAP_ENCAP_LOOP 174 258 #define WTAP_ENCAP_JSON 175 259 #define WTAP_ENCAP_NSTRACE_3_5 176 260 #define WTAP_ENCAP_ISO14443 177 261 #define WTAP_ENCAP_GFP_T 178 262 #define WTAP_ENCAP_GFP_F 179 263 #define WTAP_ENCAP_IP_OVER_IB_PCAP 180 264 #define WTAP_ENCAP_JUNIPER_VN 181 265 #define WTAP_ENCAP_USB_DARWIN 182 266 #define WTAP_ENCAP_LORATAP 183 267 #define WTAP_ENCAP_3MB_ETHERNET 184 268 #define WTAP_ENCAP_VSOCK 185 269 #define WTAP_ENCAP_NORDIC_BLE 186 270 #define WTAP_ENCAP_NETMON_NET_NETEVENT 187 271 #define WTAP_ENCAP_NETMON_HEADER 188 272 #define WTAP_ENCAP_NETMON_NET_FILTER 189 273 #define WTAP_ENCAP_NETMON_NETWORK_INFO_EX 190 274 #define WTAP_ENCAP_MA_WFP_CAPTURE_V4 191 275 #define WTAP_ENCAP_MA_WFP_CAPTURE_V6 192 276 #define WTAP_ENCAP_MA_WFP_CAPTURE_2V4 193 277 #define WTAP_ENCAP_MA_WFP_CAPTURE_2V6 194 278 #define WTAP_ENCAP_MA_WFP_CAPTURE_AUTH_V4 195 279 #define WTAP_ENCAP_MA_WFP_CAPTURE_AUTH_V6 196 280 #define WTAP_ENCAP_JUNIPER_ST 197 281 #define WTAP_ENCAP_ETHERNET_MPACKET 198 282 #define WTAP_ENCAP_DOCSIS31_XRA31 199 286 #define WTAP_NUM_ENCAP_TYPES wtap_get_num_encap_types() 293 #define WTAP_FILE_TYPE_SUBTYPE_UNKNOWN 0 294 #define WTAP_FILE_TYPE_SUBTYPE_PCAP 1 295 #define WTAP_FILE_TYPE_SUBTYPE_PCAPNG 2 296 #define WTAP_FILE_TYPE_SUBTYPE_PCAP_NSEC 3 297 #define WTAP_FILE_TYPE_SUBTYPE_PCAP_AIX 4 298 #define WTAP_FILE_TYPE_SUBTYPE_PCAP_SS991029 5 299 #define WTAP_FILE_TYPE_SUBTYPE_PCAP_NOKIA 6 300 #define WTAP_FILE_TYPE_SUBTYPE_PCAP_SS990417 7 301 #define WTAP_FILE_TYPE_SUBTYPE_PCAP_SS990915 8 302 #define WTAP_FILE_TYPE_SUBTYPE_5VIEWS 9 303 #define WTAP_FILE_TYPE_SUBTYPE_IPTRACE_1_0 10 304 #define WTAP_FILE_TYPE_SUBTYPE_IPTRACE_2_0 11 305 #define WTAP_FILE_TYPE_SUBTYPE_BER 12 306 #define WTAP_FILE_TYPE_SUBTYPE_HCIDUMP 13 307 #define WTAP_FILE_TYPE_SUBTYPE_CATAPULT_DCT2000 14 308 #define WTAP_FILE_TYPE_SUBTYPE_NETXRAY_OLD 15 309 #define WTAP_FILE_TYPE_SUBTYPE_NETXRAY_1_0 16 310 #define WTAP_FILE_TYPE_SUBTYPE_COSINE 17 311 #define WTAP_FILE_TYPE_SUBTYPE_CSIDS 18 312 #define WTAP_FILE_TYPE_SUBTYPE_DBS_ETHERWATCH 19 313 #define WTAP_FILE_TYPE_SUBTYPE_ERF 20 314 #define WTAP_FILE_TYPE_SUBTYPE_EYESDN 21 315 #define WTAP_FILE_TYPE_SUBTYPE_NETTL 22 316 #define WTAP_FILE_TYPE_SUBTYPE_ISERIES 23 317 #define WTAP_FILE_TYPE_SUBTYPE_ISERIES_UNICODE 24 318 #define WTAP_FILE_TYPE_SUBTYPE_I4BTRACE 25 319 #define WTAP_FILE_TYPE_SUBTYPE_ASCEND 26 320 #define WTAP_FILE_TYPE_SUBTYPE_NETMON_1_x 27 321 #define WTAP_FILE_TYPE_SUBTYPE_NETMON_2_x 28 322 #define WTAP_FILE_TYPE_SUBTYPE_NGSNIFFER_UNCOMPRESSED 29 323 #define WTAP_FILE_TYPE_SUBTYPE_NGSNIFFER_COMPRESSED 30 324 #define WTAP_FILE_TYPE_SUBTYPE_NETXRAY_1_1 31 325 #define WTAP_FILE_TYPE_SUBTYPE_NETXRAY_2_00x 32 326 #define WTAP_FILE_TYPE_SUBTYPE_NETWORK_INSTRUMENTS 33 327 #define WTAP_FILE_TYPE_SUBTYPE_LANALYZER 34 328 #define WTAP_FILE_TYPE_SUBTYPE_PPPDUMP 35 329 #define WTAP_FILE_TYPE_SUBTYPE_RADCOM 36 330 #define WTAP_FILE_TYPE_SUBTYPE_SNOOP 37 331 #define WTAP_FILE_TYPE_SUBTYPE_SHOMITI 38 332 #define WTAP_FILE_TYPE_SUBTYPE_VMS 39 333 #define WTAP_FILE_TYPE_SUBTYPE_K12 40 334 #define WTAP_FILE_TYPE_SUBTYPE_TOSHIBA 41 335 #define WTAP_FILE_TYPE_SUBTYPE_VISUAL_NETWORKS 42 336 #define WTAP_FILE_TYPE_SUBTYPE_PEEKCLASSIC_V56 43 337 #define WTAP_FILE_TYPE_SUBTYPE_PEEKCLASSIC_V7 44 338 #define WTAP_FILE_TYPE_SUBTYPE_PEEKTAGGED 45 339 #define WTAP_FILE_TYPE_SUBTYPE_MPEG 46 340 #define WTAP_FILE_TYPE_SUBTYPE_K12TEXT 47 341 #define WTAP_FILE_TYPE_SUBTYPE_NETSCREEN 48 342 #define WTAP_FILE_TYPE_SUBTYPE_COMMVIEW 49 343 #define WTAP_FILE_TYPE_SUBTYPE_BTSNOOP 50 344 #define WTAP_FILE_TYPE_SUBTYPE_TNEF 51 345 #define WTAP_FILE_TYPE_SUBTYPE_DCT3TRACE 52 346 #define WTAP_FILE_TYPE_SUBTYPE_PACKETLOGGER 53 347 #define WTAP_FILE_TYPE_SUBTYPE_DAINTREE_SNA 54 348 #define WTAP_FILE_TYPE_SUBTYPE_NETSCALER_1_0 55 349 #define WTAP_FILE_TYPE_SUBTYPE_NETSCALER_2_0 56 350 #define WTAP_FILE_TYPE_SUBTYPE_JPEG_JFIF 57 351 #define WTAP_FILE_TYPE_SUBTYPE_IPFIX 58 352 #define WTAP_FILE_TYPE_SUBTYPE_MIME 59 353 #define WTAP_FILE_TYPE_SUBTYPE_AETHRA 60 354 #define WTAP_FILE_TYPE_SUBTYPE_MPEG_2_TS 61 355 #define WTAP_FILE_TYPE_SUBTYPE_VWR_80211 62 356 #define WTAP_FILE_TYPE_SUBTYPE_VWR_ETH 63 357 #define WTAP_FILE_TYPE_SUBTYPE_CAMINS 64 358 #define WTAP_FILE_TYPE_SUBTYPE_STANAG_4607 65 359 #define WTAP_FILE_TYPE_SUBTYPE_NETSCALER_3_0 66 360 #define WTAP_FILE_TYPE_SUBTYPE_LOGCAT 67 361 #define WTAP_FILE_TYPE_SUBTYPE_LOGCAT_BRIEF 68 362 #define WTAP_FILE_TYPE_SUBTYPE_LOGCAT_PROCESS 69 363 #define WTAP_FILE_TYPE_SUBTYPE_LOGCAT_TAG 70 364 #define WTAP_FILE_TYPE_SUBTYPE_LOGCAT_THREAD 71 365 #define WTAP_FILE_TYPE_SUBTYPE_LOGCAT_TIME 72 366 #define WTAP_FILE_TYPE_SUBTYPE_LOGCAT_THREADTIME 73 367 #define WTAP_FILE_TYPE_SUBTYPE_LOGCAT_LONG 74 368 #define WTAP_FILE_TYPE_SUBTYPE_COLASOFT_CAPSA 75 369 #define WTAP_FILE_TYPE_SUBTYPE_COLASOFT_PACKET_BUILDER 76 370 #define WTAP_FILE_TYPE_SUBTYPE_JSON 77 371 #define WTAP_FILE_TYPE_SUBTYPE_NETSCALER_3_5 78 372 #define WTAP_FILE_TYPE_SUBTYPE_NETTRACE_3GPP_32_423 79 373 #define WTAP_FILE_TYPE_SUBTYPE_MPLOG 80 375 #define WTAP_NUM_FILE_TYPES_SUBTYPES wtap_get_num_file_types_subtypes() 378 #define WTAP_TSPREC_UNKNOWN -2 379 #define WTAP_TSPREC_PER_PACKET -1 380 #define WTAP_TSPREC_SEC 0 381 #define WTAP_TSPREC_DSEC 1 382 #define WTAP_TSPREC_CSEC 2 383 #define WTAP_TSPREC_MSEC 3 384 #define WTAP_TSPREC_USEC 6 385 #define WTAP_TSPREC_NSEC 9 401 #define WTAP_MAX_PACKET_SIZE_STANDARD 262144 402 #define WTAP_MAX_PACKET_SIZE_DBUS (128*1024*1024) 427 #define FROM_DCE 0x80 449 #define ATM_RAW_CELL 0x01 450 #define ATM_NO_HEC 0x02 451 #define ATM_AAL2_NOPHDR 0x04 452 #define ATM_REASSEMBLY_ERROR 0x08 457 #define AAL_UNKNOWN 0 463 #define AAL_SIGNALLING 6 464 #define AAL_OAMCELL 7 469 #define TRAF_UNKNOWN 0 476 #define TRAF_IPSILON 7 477 #define TRAF_UMTS_FP 8 478 #define TRAF_GPRS_NS 9 479 #define TRAF_SSCOP 10 484 #define TRAF_ST_UNKNOWN 0 489 #define TRAF_ST_VCMX_802_3_FCS 1 490 #define TRAF_ST_VCMX_802_4_FCS 2 491 #define TRAF_ST_VCMX_802_5_FCS 3 492 #define TRAF_ST_VCMX_FDDI_FCS 4 493 #define TRAF_ST_VCMX_802_6_FCS 5 494 #define TRAF_ST_VCMX_802_3 7 495 #define TRAF_ST_VCMX_802_4 8 496 #define TRAF_ST_VCMX_802_5 9 497 #define TRAF_ST_VCMX_FDDI 10 498 #define TRAF_ST_VCMX_802_6 11 499 #define TRAF_ST_VCMX_FRAGMENTS 12 500 #define TRAF_ST_VCMX_BPDU 13 505 #define TRAF_ST_LANE_LE_CTRL 1 506 #define TRAF_ST_LANE_802_3 2 507 #define TRAF_ST_LANE_802_5 3 508 #define TRAF_ST_LANE_802_3_MC 4 509 #define TRAF_ST_LANE_802_5_MC 5 514 #define TRAF_ST_IPSILON_FT0 1 515 #define TRAF_ST_IPSILON_FT1 2 516 #define TRAF_ST_IPSILON_FT2 3 530 guint32 aal5t_chksum;
536 #define ASCEND_MAX_STR_LEN 64 538 #define ASCEND_PFX_WDS_X 1 539 #define ASCEND_PFX_WDS_R 2 540 #define ASCEND_PFX_WDD 3 541 #define ASCEND_PFX_ISDN_X 4 542 #define ASCEND_PFX_ISDN_R 5 543 #define ASCEND_PFX_ETHER 6 547 char user[ASCEND_MAX_STR_LEN];
549 char call_num[ASCEND_MAX_STR_LEN];
555 #define P2P_DIR_UNKNOWN -1 556 #define P2P_DIR_SENT 0 557 #define P2P_DIR_RECV 1 592 #define PHDR_802_11_PHY_UNKNOWN 0 593 #define PHDR_802_11_PHY_11_FHSS 1 594 #define PHDR_802_11_PHY_11_IR 2 595 #define PHDR_802_11_PHY_11_DSSS 3 596 #define PHDR_802_11_PHY_11B 4 597 #define PHDR_802_11_PHY_11A 5 598 #define PHDR_802_11_PHY_11G 6 599 #define PHDR_802_11_PHY_11N 7 600 #define PHDR_802_11_PHY_11AC 8 601 #define PHDR_802_11_PHY_11AD 9 612 guint has_hop_pattern:1;
613 guint has_hop_index:1;
625 guint has_short_preamble:1;
627 gboolean short_preamble;
635 guint has_channel_type:1;
636 guint has_turbo_type:1;
638 guint channel_type:2;
645 #define PHDR_802_11A_CHANNEL_TYPE_NORMAL 0 646 #define PHDR_802_11A_CHANNEL_TYPE_HALF_CLOCKED 1 647 #define PHDR_802_11A_CHANNEL_TYPE_QUARTER_CLOCKED 2 657 #define PHDR_802_11A_TURBO_TYPE_NORMAL 0 658 #define PHDR_802_11A_TURBO_TYPE_TURBO 1 659 #define PHDR_802_11A_TURBO_TYPE_DYNAMIC_TURBO 2 660 #define PHDR_802_11A_TURBO_TYPE_STATIC_TURBO 3 667 guint has_short_preamble:1;
670 gboolean short_preamble;
677 #define PHDR_802_11G_MODE_NORMAL 0 678 #define PHDR_802_11G_MODE_SUPER_G 1 685 guint has_mcs_index:1;
686 guint has_bandwidth:1;
687 guint has_short_gi:1;
688 guint has_greenfield:1;
690 guint has_stbc_streams:1;
698 guint stbc_streams:2;
705 #define PHDR_802_11_BANDWIDTH_20_MHZ 0 706 #define PHDR_802_11_BANDWIDTH_40_MHZ 1 707 #define PHDR_802_11_BANDWIDTH_20_20L 2 708 #define PHDR_802_11_BANDWIDTH_20_20U 3 709 #define PHDR_802_11_BANDWIDTH_80_MHZ 4 710 #define PHDR_802_11_BANDWIDTH_40_40L 5 711 #define PHDR_802_11_BANDWIDTH_40_40U 6 712 #define PHDR_802_11_BANDWIDTH_20LL 7 713 #define PHDR_802_11_BANDWIDTH_20LU 8 714 #define PHDR_802_11_BANDWIDTH_20UL 9 715 #define PHDR_802_11_BANDWIDTH_20UU 10 716 #define PHDR_802_11_BANDWIDTH_160_MHZ 11 717 #define PHDR_802_11_BANDWIDTH_80_80L 12 718 #define PHDR_802_11_BANDWIDTH_80_80U 13 719 #define PHDR_802_11_BANDWIDTH_40LL 14 720 #define PHDR_802_11_BANDWIDTH_40LU 15 721 #define PHDR_802_11_BANDWIDTH_40UL 16 722 #define PHDR_802_11_BANDWIDTH_40UU 17 723 #define PHDR_802_11_BANDWIDTH_20LLL 18 724 #define PHDR_802_11_BANDWIDTH_20LLU 19 725 #define PHDR_802_11_BANDWIDTH_20LUL 20 726 #define PHDR_802_11_BANDWIDTH_20LUU 21 727 #define PHDR_802_11_BANDWIDTH_20ULL 22 728 #define PHDR_802_11_BANDWIDTH_20ULU 23 729 #define PHDR_802_11_BANDWIDTH_20UUL 24 730 #define PHDR_802_11_BANDWIDTH_20UUU 25 738 guint has_txop_ps_not_allowed:1;
739 guint has_short_gi:1;
740 guint has_short_gi_nsym_disambig:1;
741 guint has_ldpc_extra_ofdm_symbol:1;
742 guint has_beamformed:1;
743 guint has_bandwidth:1;
745 guint has_group_id:1;
746 guint has_partial_aid:1;
749 guint txop_ps_not_allowed:1;
751 guint short_gi_nsym_disambig:1;
752 guint ldpc_extra_ofdm_symbol:1;
770 #define PHDR_802_11AD_MIN_FREQUENCY 57000 771 #define PHDR_802_11AD_MAX_FREQUENCY 66000 773 #define IS_80211AD(frequency) (((frequency) >= PHDR_802_11AD_MIN_FREQUENCY) &&\ 774 ((frequency) <= PHDR_802_11AD_MAX_FREQUENCY)) 778 guint has_mcs_index:1;
802 guint has_frequency:1;
803 guint has_data_rate:1;
804 guint has_signal_percent:1;
805 guint has_noise_percent:1;
806 guint has_signal_dbm:1;
807 guint has_noise_dbm:1;
808 guint has_tsf_timestamp:1;
809 guint has_aggregate_info:1;
814 guint8 signal_percent;
815 guint8 noise_percent;
818 guint64 tsf_timestamp;
819 guint32 aggregate_flags;
820 guint32 aggregate_id;
826 #define PHDR_802_11_LAST_PART_OF_A_MPDU 0x00000001 827 #define PHDR_802_11_A_MPDU_DELIM_CRC_ERROR 0x00000002 831 #define COSINE_MAX_IF_NAME_LEN 128 833 #define COSINE_ENCAP_TEST 1 834 #define COSINE_ENCAP_PPoATM 2 835 #define COSINE_ENCAP_PPoFR 3 836 #define COSINE_ENCAP_ATM 4 837 #define COSINE_ENCAP_FR 5 838 #define COSINE_ENCAP_HDLC 6 839 #define COSINE_ENCAP_PPP 7 840 #define COSINE_ENCAP_ETH 8 841 #define COSINE_ENCAP_UNKNOWN 99 843 #define COSINE_DIR_TX 1 844 #define COSINE_DIR_RX 2 849 char if_name[COSINE_MAX_IF_NAME_LEN];
862 #define IRDA_INCOMING 0x0000 863 #define IRDA_OUTGOING 0x0004 868 #define IRDA_LOG_MESSAGE 0x0100 869 #define IRDA_MISSED_MSG 0x0101 874 #define IRDA_CLASS_FRAME 0x0000 875 #define IRDA_CLASS_LOG 0x0100 876 #define IRDA_CLASS_MASK 0xFF00 894 #define MTP2_ANNEX_A_NOT_USED 0 895 #define MTP2_ANNEX_A_USED 1 896 #define MTP2_ANNEX_A_USED_UNKNOWN 2 918 const gchar *input_name;
919 const gchar *stack_file;
923 guint32 extra_length;
927 #define K12_PORT_DS0S 0x00010008 928 #define K12_PORT_DS1 0x00100008 929 #define K12_PORT_ATMPVC 0x01020000 944 } inner_pseudo_header;
970 #define MAX_ERF_EHDR 16 979 struct erf_ehdr ehdr_list[MAX_ERF_EHDR];
988 #define SITA_FRAME_DIR_TXED (0x00) 989 #define SITA_FRAME_DIR_RXED (0x01) 990 #define SITA_FRAME_DIR (0x01) 991 #define SITA_ERROR_NO_BUFFER (0x80) 993 #define SITA_SIG_DSR (0x01) 994 #define SITA_SIG_DTR (0x02) 995 #define SITA_SIG_CTS (0x04) 996 #define SITA_SIG_RTS (0x08) 997 #define SITA_SIG_DCD (0x10) 998 #define SITA_SIG_UNDEF1 (0x20) 999 #define SITA_SIG_UNDEF2 (0x40) 1000 #define SITA_SIG_UNDEF3 (0x80) 1002 #define SITA_ERROR_TX_UNDERRUN (0x01) 1003 #define SITA_ERROR_TX_CTS_LOST (0x02) 1004 #define SITA_ERROR_TX_UART_ERROR (0x04) 1005 #define SITA_ERROR_TX_RETX_LIMIT (0x08) 1006 #define SITA_ERROR_TX_UNDEF1 (0x10) 1007 #define SITA_ERROR_TX_UNDEF2 (0x20) 1008 #define SITA_ERROR_TX_UNDEF3 (0x40) 1009 #define SITA_ERROR_TX_UNDEF4 (0x80) 1011 #define SITA_ERROR_RX_FRAMING (0x01) 1012 #define SITA_ERROR_RX_PARITY (0x02) 1013 #define SITA_ERROR_RX_COLLISION (0x04) 1014 #define SITA_ERROR_RX_FRAME_LONG (0x08) 1015 #define SITA_ERROR_RX_FRAME_SHORT (0x10) 1016 #define SITA_ERROR_RX_UNDEF1 (0x20) 1017 #define SITA_ERROR_RX_UNDEF2 (0x40) 1018 #define SITA_ERROR_RX_UNDEF3 (0x80) 1020 #define SITA_ERROR_RX_NONOCTET_ALIGNED (0x01) 1021 #define SITA_ERROR_RX_ABORT (0x02) 1022 #define SITA_ERROR_RX_CD_LOST (0x04) 1023 #define SITA_ERROR_RX_DPLL (0x08) 1024 #define SITA_ERROR_RX_OVERRUN (0x10) 1025 #define SITA_ERROR_RX_FRAME_LEN_VIOL (0x20) 1026 #define SITA_ERROR_RX_CRC (0x40) 1027 #define SITA_ERROR_RX_BREAK (0x80) 1029 #define SITA_PROTO_UNUSED (0x00) 1030 #define SITA_PROTO_BOP_LAPB (0x01) 1031 #define SITA_PROTO_ETHERNET (0x02) 1032 #define SITA_PROTO_ASYNC_INTIO (0x03) 1033 #define SITA_PROTO_ASYNC_BLKIO (0x04) 1034 #define SITA_PROTO_ALC (0x05) 1035 #define SITA_PROTO_UTS (0x06) 1036 #define SITA_PROTO_PPP_HDLC (0x07) 1037 #define SITA_PROTO_SDLC (0x08) 1038 #define SITA_PROTO_TOKENRING (0x09) 1039 #define SITA_PROTO_I2C (0x10) 1040 #define SITA_PROTO_DPM_LINK (0x11) 1041 #define SITA_PROTO_BOP_FRL (0x12) 1045 guint8 sita_signals;
1046 guint8 sita_errors1;
1047 guint8 sita_errors2;
1057 #define BTHCI_CHANNEL_COMMAND 1 1058 #define BTHCI_CHANNEL_ACL 2 1059 #define BTHCI_CHANNEL_SCO 3 1060 #define BTHCI_CHANNEL_EVENT 4 1092 #define GSM_UM_CHANNEL_UNKNOWN 0 1093 #define GSM_UM_CHANNEL_BCCH 1 1094 #define GSM_UM_CHANNEL_SDCCH 2 1095 #define GSM_UM_CHANNEL_SACCH 3 1096 #define GSM_UM_CHANNEL_FACCH 4 1097 #define GSM_UM_CHANNEL_CCCH 5 1098 #define GSM_UM_CHANNEL_RACH 6 1099 #define GSM_UM_CHANNEL_AGCH 7 1100 #define GSM_UM_CHANNEL_PCH 8 1106 guint8 nicno_offset;
1112 guint8 l_pcb_offset;
1114 guint8 vlantag_offset;
1115 guint8 coreid_offset;
1116 guint8 srcnodeid_offset;
1117 guint8 destnodeid_offset;
1118 guint8 clflags_offset;
1119 guint8 src_vmname_len_offset;
1120 guint8 dst_vmname_len_offset;
1121 guint8 ns_activity_offset;
1131 #define LLCP_PHDR_FLAG_SENT 0 1145 guint32 titleLength;
1148 guint8* description;
1238 #define REC_TYPE_PACKET 0 1239 #define REC_TYPE_FT_SPECIFIC_EVENT 1 1240 #define REC_TYPE_FT_SPECIFIC_REPORT 2 1241 #define REC_TYPE_SYSCALL 3 1248 guint32 interface_id;
1268 guint32 event_filelen;
1276 guint32 presence_flags;
1288 gboolean has_comment_changed;
1319 #define WTAP_HAS_TS 0x00000001 1320 #define WTAP_HAS_CAP_LEN 0x00000002 1321 #define WTAP_HAS_INTERFACE_ID 0x00000004 1322 #define WTAP_HAS_COMMENTS 0x00000008 1323 #define WTAP_HAS_DROP_COUNT 0x00000010 1324 #define WTAP_HAS_PACK_FLAGS 0x00000020 1329 typedef struct wtapng_section_mandatory_s { 1345 GArray *interface_data;
1353 guint64 time_units_per_second;
1358 guint8 num_stat_entries;
1368 guint16 bpf_filter_len;
1376 guint32 interface_id;
1382 #define MAXNAMELEN 64 1388 gchar ip[WS_INET_ADDRSTRLEN];
1389 gchar name[MAXNAMELEN];
1395 gchar ip6[WS_INET6_ADDRSTRLEN];
1396 gchar name[MAXNAMELEN];
1426 int (*wslua_can_write_encap)(int,
void*);
1452 gboolean is_capture_file;
1455 const char *extensions;
1486 WTAP_OPEN_NOT_MINE = 0,
1488 WTAP_OPEN_ERROR = -1
1489 } wtap_open_return_val;
1491 typedef wtap_open_return_val (*wtap_open_routine_t)(
struct wtap*,
int *,
1514 OPEN_INFO_MAGIC = 0,
1515 OPEN_INFO_HEURISTIC = 1
1518 WS_DLL_PUBLIC
void init_open_routines(
void);
1520 void cleanup_open_routines(
void);
1524 wtap_open_type type;
1525 wtap_open_routine_t open_routine;
1526 const char *extensions;
1527 gchar **extensions_set;
1530 WS_DLL_PUBLIC
struct open_info *open_routines;
1535 #define WTAP_COMMENT_PER_SECTION 0x00000001 1536 #define WTAP_COMMENT_PER_INTERFACE 0x00000002 1537 #define WTAP_COMMENT_PER_PACKET 0x00000004 1546 const char *short_name;
1550 const char *default_file_extension;
1556 const char *additional_file_extensions;
1559 gboolean writing_must_seek;
1563 gboolean has_name_resolution;
1566 guint32 supported_comment_types;
1570 int (*can_write_encap)(int);
1581 #define WTAP_TYPE_AUTO 0 1589 void wtap_init(gboolean load_wiretap_plugins);
1604 struct wtap* wtap_open_offline(
const char *filename,
unsigned int type,
int *err,
1605 gchar **err_info, gboolean do_random);
1613 void wtap_cleareof(
wtap *wth);
1619 typedef void (*wtap_new_ipv4_callback_t) (
const guint addr,
const gchar *name);
1621 void wtap_set_cb_new_ipv4(
wtap *wth, wtap_new_ipv4_callback_t add_new_ipv4);
1623 typedef void (*wtap_new_ipv6_callback_t) (
const void *addrp,
const gchar *name);
1625 void wtap_set_cb_new_ipv6(
wtap *wth, wtap_new_ipv6_callback_t add_new_ipv6);
1631 gboolean wtap_read(
wtap *wth,
int *err, gchar **err_info,
1632 gint64 *data_offset);
1635 gboolean wtap_seek_read(
wtap *wth, gint64 seek_off,
wtap_rec *rec,
1636 Buffer *buf,
int *err, gchar **err_info);
1643 guint8 *wtap_get_buf_ptr(
wtap *wth);
1651 void wtap_rec_cleanup(
wtap_rec *rec);
1658 gint64 wtap_read_so_far(
wtap *wth);
1660 gint64 wtap_file_size(
wtap *wth,
int *err);
1662 gboolean wtap_iscompressed(
wtap *wth);
1664 guint wtap_snapshot_length(
wtap *wth);
1666 int wtap_file_type_subtype(
wtap *wth);
1668 int wtap_file_encap(
wtap *wth);
1670 int wtap_file_tsprec(
wtap *wth);
1701 GArray* wtap_file_get_shb_for_new_file(
wtap *wth);
1714 void wtap_write_shb_comment(
wtap *wth, gchar *comment);
1756 gchar *wtap_get_debug_if_descr(
const wtap_block_t if_descr,
1758 const char* line_end);
1786 GArray* wtap_file_get_nrb_for_new_file(
wtap *wth);
1790 void wtap_fdclose(
wtap *wth);
1794 gboolean wtap_fdreopen(
wtap *wth,
const char *filename,
int *err);
1798 void wtap_sequential_close(
wtap *wth);
1802 void wtap_close(
wtap *wth);
1806 gboolean wtap_dump_can_open(
int filetype);
1813 int wtap_dump_file_encap_type(
const GArray *file_encaps);
1820 gboolean wtap_dump_can_compress(
int filetype);
1827 gboolean wtap_dump_has_name_resolution(
int filetype);
1834 gboolean wtap_dump_supports_comment_types(
int filetype, guint32 comment_types);
1837 wtap_dumper* wtap_dump_open(
const char *filename,
int file_type_subtype,
int encap,
1838 int snaplen, gboolean compressed,
int *err);
1859 wtap_dumper* wtap_dump_open_ng(
const char *filename,
int file_type_subtype,
int encap,
1864 wtap_dumper* wtap_dump_open_tempfile(
char **filenamep,
const char *pfx,
1865 int file_type_subtype,
int encap,
int snaplen, gboolean compressed,
1889 wtap_dumper* wtap_dump_open_tempfile_ng(
char **filenamep,
const char *pfx,
1890 int file_type_subtype,
int encap,
int snaplen, gboolean compressed,
1895 wtap_dumper* wtap_dump_fdopen(
int fd,
int file_type_subtype,
int encap,
int snaplen,
1896 gboolean compressed,
int *err);
1917 wtap_dumper* wtap_dump_fdopen_ng(
int fd,
int file_type_subtype,
int encap,
int snaplen,
1922 wtap_dumper* wtap_dump_open_stdout(
int file_type_subtype,
int encap,
int snaplen,
1923 gboolean compressed,
int *err);
1943 wtap_dumper* wtap_dump_open_stdout_ng(
int file_type_subtype,
int encap,
int snaplen,
1949 int *err, gchar **err_info);
1955 void wtap_set_bytes_dumped(
wtap_dumper *wdh, gint64 bytes_dumped);
1962 gboolean wtap_dump_get_needs_reload(
wtap_dumper *wdh);
1969 gboolean wtap_dump_close(
wtap_dumper *wdh,
int *err);
1976 gboolean wtap_dump_can_write(
const GArray *file_encaps, guint32 required_comment_types);
1984 GArray *wtap_get_savable_file_types_subtypes(
int file_type,
1985 const GArray *file_encaps, guint32 required_comment_types);
1989 const char *wtap_file_type_subtype_string(
int file_type_subtype);
1991 const char *wtap_file_type_subtype_short_string(
int file_type_subtype);
1993 int wtap_short_string_to_file_type_subtype(
const char *short_name);
1997 GSList *wtap_get_all_capture_file_extensions_list(
void);
1999 const char *wtap_default_file_extension(
int filetype);
2001 GSList *wtap_get_file_extensions_list(
int filetype, gboolean include_compressed);
2003 void wtap_free_extensions_list(GSList *extensions);
2006 const char *wtap_encap_string(
int encap);
2008 const char *wtap_encap_short_string(
int encap);
2010 int wtap_short_string_to_encap(
const char *short_name);
2013 const char* wtap_tsprec_string(
int tsprec);
2016 const char *wtap_strerror(
int err);
2020 int wtap_get_num_file_type_extensions(
void);
2022 int wtap_get_num_encap_types(
void);
2024 int wtap_get_num_file_types_subtypes(
void);
2028 const char *wtap_get_file_extension_type_name(
int extension_type);
2030 GSList *wtap_get_file_extension_type_extensions(guint extension_type);
2038 void (*register_wtap_module)(void);
2042 void wtap_register_plugin(
const wtap_plugin *plug);
2046 void wtap_register_open_info(
struct open_info *oi,
const gboolean first_routine);
2048 gboolean wtap_has_open_info(
const gchar *name);
2050 void wtap_deregister_open_info(
const gchar *name);
2053 unsigned int open_info_name_to_type(
const char *name);
2057 void wtap_deregister_file_type_subtype(
const int file_type_subtype);
2060 int wtap_register_encap_type(
const char* name,
const char* short_name);
2064 void wtap_cleanup(
void);
2069 #define WTAP_ERR_NOT_REGULAR_FILE -1 2072 #define WTAP_ERR_RANDOM_OPEN_PIPE -2 2075 #define WTAP_ERR_FILE_UNKNOWN_FORMAT -3 2078 #define WTAP_ERR_UNSUPPORTED -4 2082 #define WTAP_ERR_CANT_WRITE_TO_PIPE -5 2085 #define WTAP_ERR_CANT_OPEN -6 2088 #define WTAP_ERR_UNWRITABLE_FILE_TYPE -7 2091 #define WTAP_ERR_UNWRITABLE_ENCAP -8 2095 #define WTAP_ERR_ENCAP_PER_PACKET_UNSUPPORTED -9 2098 #define WTAP_ERR_CANT_WRITE -10 2101 #define WTAP_ERR_CANT_CLOSE -11 2104 #define WTAP_ERR_SHORT_READ -12 2107 #define WTAP_ERR_BAD_FILE -13 2110 #define WTAP_ERR_SHORT_WRITE -14 2113 #define WTAP_ERR_UNC_OVERFLOW -15 2116 #define WTAP_ERR_RANDOM_OPEN_STDIN -16 2119 #define WTAP_ERR_COMPRESSION_NOT_SUPPORTED -17 2122 #define WTAP_ERR_CANT_SEEK -18 2125 #define WTAP_ERR_CANT_SEEK_COMPRESSED -19 2128 #define WTAP_ERR_DECOMPRESS -20 2131 #define WTAP_ERR_INTERNAL -21 2134 #define WTAP_ERR_PACKET_TOO_LARGE -22 2138 #define WTAP_ERR_CHECK_WSLUA -23 2142 #define WTAP_ERR_UNWRITABLE_REC_TYPE -24 2145 #define WTAP_ERR_UNWRITABLE_REC_DATA -25 2148 #define WTAP_ERR_DECOMPRESSION_NOT_SUPPORTED -26
Definition: wtap-int.h:34
Definition: wtap_opttypes.c:57
int tsprecision
Definition: wtap.h:1354
GList * ipv6_addr_list
Definition: wtap.h:1404
GArray * nrb_hdrs
Definition: wtap-int.h:44
guint64 section_length
Definition: wtap.h:1330
int wtap_encap
Definition: wtap.h:1352
GArray * interface_statistics
Definition: wtap.h:1359
guint8 * if_filter_bpf_bytes
Definition: wtap.h:1369
GList * ipv4_addr_list
Definition: wtap.h:1403
gchar * if_filter_str
Definition: wtap.h:1365
Definition: file_wrappers.c:78
Definition: wtap-int.h:86