aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2008-04-24 00:08:19 +0000
committerGuy Harris <guy@alum.mit.edu>2008-04-24 00:08:19 +0000
commit5738a4465444f6e6530732f0e409fa6f322b74f5 (patch)
treee1277a812664aa9d6689f7866ff97f809915c90a /wiretap/wtap.h
parent0c2c313d8b560a2ab2a2d2d914265a1c949b28ec (diff)
Clean up indentation. There is no guarantee that tabs will appear
every 4 spaces or every 8 spaces, so just use spaces. svn path=/trunk/; revision=25162
Diffstat (limited to 'wiretap/wtap.h')
-rw-r--r--wiretap/wtap.h340
1 files changed, 170 insertions, 170 deletions
diff --git a/wiretap/wtap.h b/wiretap/wtap.h
index f439bcba79..edc3961e59 100644
--- a/wiretap/wtap.h
+++ b/wiretap/wtap.h
@@ -93,180 +93,180 @@ extern "C" {
* what older versions of "libpcap" on Linux turn the Ethernet
* header for loopback interfaces into (0.6.0 and later versions
* leave the Ethernet header alone and make it DLT_EN10MB). */
-#define WTAP_ENCAP_PER_PACKET -1
-#define WTAP_ENCAP_UNKNOWN 0
-#define WTAP_ENCAP_ETHERNET 1
-#define WTAP_ENCAP_TOKEN_RING 2
-#define WTAP_ENCAP_SLIP 3
-#define WTAP_ENCAP_PPP 4
-#define WTAP_ENCAP_FDDI 5
-#define WTAP_ENCAP_FDDI_BITSWAPPED 6
-#define WTAP_ENCAP_RAW_IP 7
-#define WTAP_ENCAP_ARCNET 8
-#define WTAP_ENCAP_ARCNET_LINUX 9
-#define WTAP_ENCAP_ATM_RFC1483 10
-#define WTAP_ENCAP_LINUX_ATM_CLIP 11
-#define WTAP_ENCAP_LAPB 12
-#define WTAP_ENCAP_ATM_PDUS 13
-#define WTAP_ENCAP_ATM_PDUS_UNTRUNCATED 14
-#define WTAP_ENCAP_NULL 15
-#define WTAP_ENCAP_ASCEND 16
-#define WTAP_ENCAP_ISDN 17
-#define WTAP_ENCAP_IP_OVER_FC 18
-#define WTAP_ENCAP_PPP_WITH_PHDR 19
-#define WTAP_ENCAP_IEEE_802_11 20
-#define WTAP_ENCAP_PRISM_HEADER 21
-#define WTAP_ENCAP_IEEE_802_11_WITH_RADIO 22
-#define WTAP_ENCAP_IEEE_802_11_WLAN_RADIOTAP 23
-#define WTAP_ENCAP_IEEE_802_11_WLAN_AVS 24
-#define WTAP_ENCAP_SLL 25
-#define WTAP_ENCAP_FRELAY 26
-#define WTAP_ENCAP_FRELAY_WITH_PHDR 27
-#define WTAP_ENCAP_CHDLC 28
-#define WTAP_ENCAP_CISCO_IOS 29
-#define WTAP_ENCAP_LOCALTALK 30
-#define WTAP_ENCAP_OLD_PFLOG 31
-#define WTAP_ENCAP_HHDLC 32
-#define WTAP_ENCAP_DOCSIS 33
-#define WTAP_ENCAP_COSINE 34
-#define WTAP_ENCAP_WFLEET_HDLC 35
-#define WTAP_ENCAP_SDLC 36
-#define WTAP_ENCAP_TZSP 37
-#define WTAP_ENCAP_ENC 38
-#define WTAP_ENCAP_PFLOG 39
-#define WTAP_ENCAP_CHDLC_WITH_PHDR 40
-#define WTAP_ENCAP_BLUETOOTH_H4 41
-#define WTAP_ENCAP_MTP2 42
-#define WTAP_ENCAP_MTP3 43
-#define WTAP_ENCAP_IRDA 44
-#define WTAP_ENCAP_USER0 45
-#define WTAP_ENCAP_USER1 46
-#define WTAP_ENCAP_USER2 47
-#define WTAP_ENCAP_USER3 48
-#define WTAP_ENCAP_USER4 49
-#define WTAP_ENCAP_USER5 50
-#define WTAP_ENCAP_USER6 51
-#define WTAP_ENCAP_USER7 52
-#define WTAP_ENCAP_USER8 53
-#define WTAP_ENCAP_USER9 54
-#define WTAP_ENCAP_USER10 55
-#define WTAP_ENCAP_USER11 56
-#define WTAP_ENCAP_USER12 57
-#define WTAP_ENCAP_USER13 58
-#define WTAP_ENCAP_USER14 59
-#define WTAP_ENCAP_USER15 60
-#define WTAP_ENCAP_SYMANTEC 61
-#define WTAP_ENCAP_APPLE_IP_OVER_IEEE1394 62
-#define WTAP_ENCAP_BACNET_MS_TP 63
-#define WTAP_ENCAP_NETTL_RAW_ICMP 64
-#define WTAP_ENCAP_NETTL_RAW_ICMPV6 65
-#define WTAP_ENCAP_GPRS_LLC 66
-#define WTAP_ENCAP_JUNIPER_ATM1 67
-#define WTAP_ENCAP_JUNIPER_ATM2 68
-#define WTAP_ENCAP_REDBACK 69
-#define WTAP_ENCAP_NETTL_RAW_IP 70
-#define WTAP_ENCAP_NETTL_ETHERNET 71
-#define WTAP_ENCAP_NETTL_TOKEN_RING 72
-#define WTAP_ENCAP_NETTL_FDDI 73
-#define WTAP_ENCAP_NETTL_UNKNOWN 74
-#define WTAP_ENCAP_MTP2_WITH_PHDR 75
-#define WTAP_ENCAP_JUNIPER_PPPOE 76
-#define WTAP_GCOM_TIE1 77
-#define WTAP_GCOM_SERIAL 78
-#define WTAP_ENCAP_NETTL_X25 79
-#define WTAP_ENCAP_K12 80
-#define WTAP_ENCAP_JUNIPER_MLPPP 81
-#define WTAP_ENCAP_JUNIPER_MLFR 82
-#define WTAP_ENCAP_JUNIPER_ETHER 83
-#define WTAP_ENCAP_JUNIPER_PPP 84
-#define WTAP_ENCAP_JUNIPER_FRELAY 85
-#define WTAP_ENCAP_JUNIPER_CHDLC 86
-#define WTAP_ENCAP_JUNIPER_GGSN 87
-#define WTAP_ENCAP_LINUX_LAPD 88
-#define WTAP_ENCAP_CATAPULT_DCT2000 89
-#define WTAP_ENCAP_BER 90
-#define WTAP_ENCAP_JUNIPER_VP 91
-#define WTAP_ENCAP_USB 92
-#define WTAP_ENCAP_IEEE802_16_MAC_CPS 93
-#define WTAP_ENCAP_NETTL_RAW_TELNET 94
-#define WTAP_ENCAP_USB_LINUX 95
-#define WTAP_ENCAP_MPEG 96
-#define WTAP_ENCAP_PPI 97
-#define WTAP_ENCAP_ERF 98
-#define WTAP_ENCAP_BLUETOOTH_H4_WITH_PHDR 99
-#define WTAP_ENCAP_SITA 100
-#define WTAP_ENCAP_SCCP 101
-#define WTAP_ENCAP_BLUETOOTH_HCI 102 /*raw packets without a transport layer header e.g. H4*/
-#define WTAP_ENCAP_IPMB 103
-#define WTAP_ENCAP_IEEE802_15_4 104
-#define WTAP_ENCAP_X2E_XORAYA 105
-#define WTAP_ENCAP_FLEXRAY 106
-#define WTAP_ENCAP_LIN 107
-#define WTAP_ENCAP_MOST 108
-#define WTAP_ENCAP_CAN20B 109
-#define WTAP_ENCAP_LAYER1_EVENT 110
-#define WTAP_ENCAP_X2E_SERIAL 111
-
-#define WTAP_NUM_ENCAP_TYPES wtap_get_num_encap_types()
+#define WTAP_ENCAP_PER_PACKET -1
+#define WTAP_ENCAP_UNKNOWN 0
+#define WTAP_ENCAP_ETHERNET 1
+#define WTAP_ENCAP_TOKEN_RING 2
+#define WTAP_ENCAP_SLIP 3
+#define WTAP_ENCAP_PPP 4
+#define WTAP_ENCAP_FDDI 5
+#define WTAP_ENCAP_FDDI_BITSWAPPED 6
+#define WTAP_ENCAP_RAW_IP 7
+#define WTAP_ENCAP_ARCNET 8
+#define WTAP_ENCAP_ARCNET_LINUX 9
+#define WTAP_ENCAP_ATM_RFC1483 10
+#define WTAP_ENCAP_LINUX_ATM_CLIP 11
+#define WTAP_ENCAP_LAPB 12
+#define WTAP_ENCAP_ATM_PDUS 13
+#define WTAP_ENCAP_ATM_PDUS_UNTRUNCATED 14
+#define WTAP_ENCAP_NULL 15
+#define WTAP_ENCAP_ASCEND 16
+#define WTAP_ENCAP_ISDN 17
+#define WTAP_ENCAP_IP_OVER_FC 18
+#define WTAP_ENCAP_PPP_WITH_PHDR 19
+#define WTAP_ENCAP_IEEE_802_11 20
+#define WTAP_ENCAP_PRISM_HEADER 21
+#define WTAP_ENCAP_IEEE_802_11_WITH_RADIO 22
+#define WTAP_ENCAP_IEEE_802_11_WLAN_RADIOTAP 23
+#define WTAP_ENCAP_IEEE_802_11_WLAN_AVS 24
+#define WTAP_ENCAP_SLL 25
+#define WTAP_ENCAP_FRELAY 26
+#define WTAP_ENCAP_FRELAY_WITH_PHDR 27
+#define WTAP_ENCAP_CHDLC 28
+#define WTAP_ENCAP_CISCO_IOS 29
+#define WTAP_ENCAP_LOCALTALK 30
+#define WTAP_ENCAP_OLD_PFLOG 31
+#define WTAP_ENCAP_HHDLC 32
+#define WTAP_ENCAP_DOCSIS 33
+#define WTAP_ENCAP_COSINE 34
+#define WTAP_ENCAP_WFLEET_HDLC 35
+#define WTAP_ENCAP_SDLC 36
+#define WTAP_ENCAP_TZSP 37
+#define WTAP_ENCAP_ENC 38
+#define WTAP_ENCAP_PFLOG 39
+#define WTAP_ENCAP_CHDLC_WITH_PHDR 40
+#define WTAP_ENCAP_BLUETOOTH_H4 41
+#define WTAP_ENCAP_MTP2 42
+#define WTAP_ENCAP_MTP3 43
+#define WTAP_ENCAP_IRDA 44
+#define WTAP_ENCAP_USER0 45
+#define WTAP_ENCAP_USER1 46
+#define WTAP_ENCAP_USER2 47
+#define WTAP_ENCAP_USER3 48
+#define WTAP_ENCAP_USER4 49
+#define WTAP_ENCAP_USER5 50
+#define WTAP_ENCAP_USER6 51
+#define WTAP_ENCAP_USER7 52
+#define WTAP_ENCAP_USER8 53
+#define WTAP_ENCAP_USER9 54
+#define WTAP_ENCAP_USER10 55
+#define WTAP_ENCAP_USER11 56
+#define WTAP_ENCAP_USER12 57
+#define WTAP_ENCAP_USER13 58
+#define WTAP_ENCAP_USER14 59
+#define WTAP_ENCAP_USER15 60
+#define WTAP_ENCAP_SYMANTEC 61
+#define WTAP_ENCAP_APPLE_IP_OVER_IEEE1394 62
+#define WTAP_ENCAP_BACNET_MS_TP 63
+#define WTAP_ENCAP_NETTL_RAW_ICMP 64
+#define WTAP_ENCAP_NETTL_RAW_ICMPV6 65
+#define WTAP_ENCAP_GPRS_LLC 66
+#define WTAP_ENCAP_JUNIPER_ATM1 67
+#define WTAP_ENCAP_JUNIPER_ATM2 68
+#define WTAP_ENCAP_REDBACK 69
+#define WTAP_ENCAP_NETTL_RAW_IP 70
+#define WTAP_ENCAP_NETTL_ETHERNET 71
+#define WTAP_ENCAP_NETTL_TOKEN_RING 72
+#define WTAP_ENCAP_NETTL_FDDI 73
+#define WTAP_ENCAP_NETTL_UNKNOWN 74
+#define WTAP_ENCAP_MTP2_WITH_PHDR 75
+#define WTAP_ENCAP_JUNIPER_PPPOE 76
+#define WTAP_GCOM_TIE1 77
+#define WTAP_GCOM_SERIAL 78
+#define WTAP_ENCAP_NETTL_X25 79
+#define WTAP_ENCAP_K12 80
+#define WTAP_ENCAP_JUNIPER_MLPPP 81
+#define WTAP_ENCAP_JUNIPER_MLFR 82
+#define WTAP_ENCAP_JUNIPER_ETHER 83
+#define WTAP_ENCAP_JUNIPER_PPP 84
+#define WTAP_ENCAP_JUNIPER_FRELAY 85
+#define WTAP_ENCAP_JUNIPER_CHDLC 86
+#define WTAP_ENCAP_JUNIPER_GGSN 87
+#define WTAP_ENCAP_LINUX_LAPD 88
+#define WTAP_ENCAP_CATAPULT_DCT2000 89
+#define WTAP_ENCAP_BER 90
+#define WTAP_ENCAP_JUNIPER_VP 91
+#define WTAP_ENCAP_USB 92
+#define WTAP_ENCAP_IEEE802_16_MAC_CPS 93
+#define WTAP_ENCAP_NETTL_RAW_TELNET 94
+#define WTAP_ENCAP_USB_LINUX 95
+#define WTAP_ENCAP_MPEG 96
+#define WTAP_ENCAP_PPI 97
+#define WTAP_ENCAP_ERF 98
+#define WTAP_ENCAP_BLUETOOTH_H4_WITH_PHDR 99
+#define WTAP_ENCAP_SITA 100
+#define WTAP_ENCAP_SCCP 101
+#define WTAP_ENCAP_BLUETOOTH_HCI 102 /*raw packets without a transport layer header e.g. H4*/
+#define WTAP_ENCAP_IPMB 103
+#define WTAP_ENCAP_IEEE802_15_4 104
+#define WTAP_ENCAP_X2E_XORAYA 105
+#define WTAP_ENCAP_FLEXRAY 106
+#define WTAP_ENCAP_LIN 107
+#define WTAP_ENCAP_MOST 108
+#define WTAP_ENCAP_CAN20B 109
+#define WTAP_ENCAP_LAYER1_EVENT 110
+#define WTAP_ENCAP_X2E_SERIAL 111
+
+#define WTAP_NUM_ENCAP_TYPES wtap_get_num_encap_types()
/* File types that can be read by wiretap.
We support writing some many of these file types, too, so we
distinguish between different versions of them. */
-#define WTAP_FILE_UNKNOWN 0
-#define WTAP_FILE_WTAP 1
-#define WTAP_FILE_PCAP 2
-#define WTAP_FILE_PCAP_NSEC 3
-#define WTAP_FILE_PCAP_AIX 4
-#define WTAP_FILE_PCAP_SS991029 5
-#define WTAP_FILE_PCAP_NOKIA 6
-#define WTAP_FILE_PCAP_SS990417 7
-#define WTAP_FILE_PCAP_SS990915 8
-#define WTAP_FILE_5VIEWS 9
-#define WTAP_FILE_IPTRACE_1_0 10
-#define WTAP_FILE_IPTRACE_2_0 11
-#define WTAP_FILE_BER 12
-#define WTAP_FILE_HCIDUMP 13
-#define WTAP_FILE_CATAPULT_DCT2000 14
-#define WTAP_FILE_NETXRAY_OLD 15
-#define WTAP_FILE_NETXRAY_1_0 16
-#define WTAP_FILE_COSINE 17
-#define WTAP_FILE_CSIDS 18
-#define WTAP_FILE_DBS_ETHERWATCH 19
-#define WTAP_FILE_ERF 20
-#define WTAP_FILE_EYESDN 21
-#define WTAP_FILE_NETTL 22
-#define WTAP_FILE_ISERIES 23
-#define WTAP_FILE_ISERIES_UNICODE 24
-#define WTAP_FILE_I4BTRACE 25
-#define WTAP_FILE_ASCEND 26
-#define WTAP_FILE_NETMON_1_x 27
-#define WTAP_FILE_NETMON_2_x 28
-#define WTAP_FILE_NGSNIFFER_UNCOMPRESSED 29
-#define WTAP_FILE_NGSNIFFER_COMPRESSED 30
-#define WTAP_FILE_NETXRAY_1_1 31
-#define WTAP_FILE_NETXRAY_2_00x 32
-#define WTAP_FILE_NETWORK_INSTRUMENTS_V9 33
-#define WTAP_FILE_LANALYZER 34
-#define WTAP_FILE_PPPDUMP 35
-#define WTAP_FILE_RADCOM 36
-#define WTAP_FILE_SNOOP 37
-#define WTAP_FILE_SHOMITI 38
-#define WTAP_FILE_VMS 39
-#define WTAP_FILE_K12 40
-#define WTAP_FILE_TOSHIBA 41
-#define WTAP_FILE_VISUAL_NETWORKS 42
-#define WTAP_FILE_ETHERPEEK_V56 43
-#define WTAP_FILE_ETHERPEEK_V7 44
-#define WTAP_FILE_AIROPEEK_V9 45
-#define WTAP_FILE_MPEG 46
-#define WTAP_FILE_K12TEXT 47
-#define WTAP_FILE_NETSCREEN 48
-#define WTAP_FILE_COMMVIEW 49
-#define WTAP_FILE_PCAPNG 50
-#define WTAP_FILE_BTSNOOP 51
-#define WTAP_FILE_X2E_XORAYA 52
-
-#define WTAP_NUM_FILE_TYPES wtap_get_num_file_types()
+#define WTAP_FILE_UNKNOWN 0
+#define WTAP_FILE_WTAP 1
+#define WTAP_FILE_PCAP 2
+#define WTAP_FILE_PCAP_NSEC 3
+#define WTAP_FILE_PCAP_AIX 4
+#define WTAP_FILE_PCAP_SS991029 5
+#define WTAP_FILE_PCAP_NOKIA 6
+#define WTAP_FILE_PCAP_SS990417 7
+#define WTAP_FILE_PCAP_SS990915 8
+#define WTAP_FILE_5VIEWS 9
+#define WTAP_FILE_IPTRACE_1_0 10
+#define WTAP_FILE_IPTRACE_2_0 11
+#define WTAP_FILE_BER 12
+#define WTAP_FILE_HCIDUMP 13
+#define WTAP_FILE_CATAPULT_DCT2000 14
+#define WTAP_FILE_NETXRAY_OLD 15
+#define WTAP_FILE_NETXRAY_1_0 16
+#define WTAP_FILE_COSINE 17
+#define WTAP_FILE_CSIDS 18
+#define WTAP_FILE_DBS_ETHERWATCH 19
+#define WTAP_FILE_ERF 20
+#define WTAP_FILE_EYESDN 21
+#define WTAP_FILE_NETTL 22
+#define WTAP_FILE_ISERIES 23
+#define WTAP_FILE_ISERIES_UNICODE 24
+#define WTAP_FILE_I4BTRACE 25
+#define WTAP_FILE_ASCEND 26
+#define WTAP_FILE_NETMON_1_x 27
+#define WTAP_FILE_NETMON_2_x 28
+#define WTAP_FILE_NGSNIFFER_UNCOMPRESSED 29
+#define WTAP_FILE_NGSNIFFER_COMPRESSED 30
+#define WTAP_FILE_NETXRAY_1_1 31
+#define WTAP_FILE_NETXRAY_2_00x 32
+#define WTAP_FILE_NETWORK_INSTRUMENTS_V9 33
+#define WTAP_FILE_LANALYZER 34
+#define WTAP_FILE_PPPDUMP 35
+#define WTAP_FILE_RADCOM 36
+#define WTAP_FILE_SNOOP 37
+#define WTAP_FILE_SHOMITI 38
+#define WTAP_FILE_VMS 39
+#define WTAP_FILE_K12 40
+#define WTAP_FILE_TOSHIBA 41
+#define WTAP_FILE_VISUAL_NETWORKS 42
+#define WTAP_FILE_ETHERPEEK_V56 43
+#define WTAP_FILE_ETHERPEEK_V7 44
+#define WTAP_FILE_AIROPEEK_V9 45
+#define WTAP_FILE_MPEG 46
+#define WTAP_FILE_K12TEXT 47
+#define WTAP_FILE_NETSCREEN 48
+#define WTAP_FILE_COMMVIEW 49
+#define WTAP_FILE_PCAPNG 50
+#define WTAP_FILE_BTSNOOP 51
+#define WTAP_FILE_X2E_XORAYA 52
+
+#define WTAP_NUM_FILE_TYPES wtap_get_num_file_types()
/* timestamp precision (currently only these values are supported) */
#define WTAP_FILE_TSPREC_SEC 0