Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 1 | package net.floodlightcontroller.counter; |
| 2 | |
| 3 | import java.util.HashMap; |
| 4 | import java.util.Map; |
| 5 | |
| 6 | /** |
| 7 | * Class to contain some statically initialized data |
| 8 | * @author readams |
| 9 | * |
| 10 | */ |
| 11 | public class TypeAliases { |
| 12 | protected static final Map<String,String> l3TypeAliasMap = |
| 13 | new HashMap<String, String>(); |
| 14 | static { |
| 15 | l3TypeAliasMap.put("0599", "L3_V1Ether"); |
| 16 | l3TypeAliasMap.put("0800", "L3_IPv4"); |
| 17 | l3TypeAliasMap.put("0806", "L3_ARP"); |
| 18 | l3TypeAliasMap.put("8035", "L3_RARP"); |
| 19 | l3TypeAliasMap.put("809b", "L3_AppleTalk"); |
| 20 | l3TypeAliasMap.put("80f3", "L3_AARP"); |
| 21 | l3TypeAliasMap.put("8100", "L3_802_1Q"); |
| 22 | l3TypeAliasMap.put("8137", "L3_Novell_IPX"); |
| 23 | l3TypeAliasMap.put("8138", "L3_Novell"); |
| 24 | l3TypeAliasMap.put("86dd", "L3_IPv6"); |
| 25 | l3TypeAliasMap.put("8847", "L3_MPLS_uni"); |
| 26 | l3TypeAliasMap.put("8848", "L3_MPLS_multi"); |
| 27 | l3TypeAliasMap.put("8863", "L3_PPPoE_DS"); |
| 28 | l3TypeAliasMap.put("8864", "L3_PPPoE_SS"); |
| 29 | l3TypeAliasMap.put("886f", "L3_MSFT_NLB"); |
| 30 | l3TypeAliasMap.put("8870", "L3_Jumbo"); |
| 31 | l3TypeAliasMap.put("889a", "L3_HyperSCSI"); |
| 32 | l3TypeAliasMap.put("88a2", "L3_ATA_Ethernet"); |
| 33 | l3TypeAliasMap.put("88a4", "L3_EtherCAT"); |
| 34 | l3TypeAliasMap.put("88a8", "L3_802_1ad"); |
| 35 | l3TypeAliasMap.put("88ab", "L3_Ether_Powerlink"); |
| 36 | l3TypeAliasMap.put("88cc", "L3_LLDP"); |
| 37 | l3TypeAliasMap.put("88cd", "L3_SERCOS_III"); |
| 38 | l3TypeAliasMap.put("88e5", "L3_802_1ae"); |
| 39 | l3TypeAliasMap.put("88f7", "L3_IEEE_1588"); |
| 40 | l3TypeAliasMap.put("8902", "L3_802_1ag_CFM"); |
| 41 | l3TypeAliasMap.put("8906", "L3_FCoE"); |
| 42 | l3TypeAliasMap.put("9000", "L3_Loop"); |
| 43 | l3TypeAliasMap.put("9100", "L3_Q_in_Q"); |
| 44 | l3TypeAliasMap.put("cafe", "L3_LLT"); |
| 45 | } |
| 46 | |
| 47 | protected static final Map<String,String> l4TypeAliasMap = |
| 48 | new HashMap<String, String>(); |
| 49 | static { |
| 50 | l4TypeAliasMap.put("00", "L4_HOPOPT"); |
| 51 | l4TypeAliasMap.put("01", "L4_ICMP"); |
| 52 | l4TypeAliasMap.put("02", "L4_IGAP_IGMP_RGMP"); |
| 53 | l4TypeAliasMap.put("03", "L4_GGP"); |
| 54 | l4TypeAliasMap.put("04", "L4_IP"); |
| 55 | l4TypeAliasMap.put("05", "L4_ST"); |
| 56 | l4TypeAliasMap.put("06", "L4_TCP"); |
| 57 | l4TypeAliasMap.put("07", "L4_UCL"); |
| 58 | l4TypeAliasMap.put("08", "L4_EGP"); |
| 59 | l4TypeAliasMap.put("09", "L4_IGRP"); |
| 60 | l4TypeAliasMap.put("0a", "L4_BBN"); |
| 61 | l4TypeAliasMap.put("0b", "L4_NVP"); |
| 62 | l4TypeAliasMap.put("0c", "L4_PUP"); |
| 63 | l4TypeAliasMap.put("0d", "L4_ARGUS"); |
| 64 | l4TypeAliasMap.put("0e", "L4_EMCON"); |
| 65 | l4TypeAliasMap.put("0f", "L4_XNET"); |
| 66 | l4TypeAliasMap.put("10", "L4_Chaos"); |
| 67 | l4TypeAliasMap.put("11", "L4_UDP"); |
| 68 | l4TypeAliasMap.put("12", "L4_TMux"); |
| 69 | l4TypeAliasMap.put("13", "L4_DCN"); |
| 70 | l4TypeAliasMap.put("14", "L4_HMP"); |
| 71 | l4TypeAliasMap.put("15", "L4_Packet_Radio"); |
| 72 | l4TypeAliasMap.put("16", "L4_XEROX_NS_IDP"); |
| 73 | l4TypeAliasMap.put("17", "L4_Trunk_1"); |
| 74 | l4TypeAliasMap.put("18", "L4_Trunk_2"); |
| 75 | l4TypeAliasMap.put("19", "L4_Leaf_1"); |
| 76 | l4TypeAliasMap.put("1a", "L4_Leaf_2"); |
| 77 | l4TypeAliasMap.put("1b", "L4_RDP"); |
| 78 | l4TypeAliasMap.put("1c", "L4_IRTP"); |
| 79 | l4TypeAliasMap.put("1d", "L4_ISO_TP4"); |
| 80 | l4TypeAliasMap.put("1e", "L4_NETBLT"); |
| 81 | l4TypeAliasMap.put("1f", "L4_MFE"); |
| 82 | l4TypeAliasMap.put("20", "L4_MERIT"); |
| 83 | l4TypeAliasMap.put("21", "L4_DCCP"); |
| 84 | l4TypeAliasMap.put("22", "L4_Third_Party_Connect"); |
| 85 | l4TypeAliasMap.put("23", "L4_IDPR"); |
| 86 | l4TypeAliasMap.put("24", "L4_XTP"); |
| 87 | l4TypeAliasMap.put("25", "L4_Datagram_Delivery"); |
| 88 | l4TypeAliasMap.put("26", "L4_IDPR"); |
| 89 | l4TypeAliasMap.put("27", "L4_TP"); |
| 90 | l4TypeAliasMap.put("28", "L4_ILTP"); |
| 91 | l4TypeAliasMap.put("29", "L4_IPv6_over_IPv4"); |
| 92 | l4TypeAliasMap.put("2a", "L4_SDRP"); |
| 93 | l4TypeAliasMap.put("2b", "L4_IPv6_RH"); |
| 94 | l4TypeAliasMap.put("2c", "L4_IPv6_FH"); |
| 95 | l4TypeAliasMap.put("2d", "L4_IDRP"); |
| 96 | l4TypeAliasMap.put("2e", "L4_RSVP"); |
| 97 | l4TypeAliasMap.put("2f", "L4_GRE"); |
| 98 | l4TypeAliasMap.put("30", "L4_DSR"); |
| 99 | l4TypeAliasMap.put("31", "L4_BNA"); |
| 100 | l4TypeAliasMap.put("32", "L4_ESP"); |
| 101 | l4TypeAliasMap.put("33", "L4_AH"); |
| 102 | l4TypeAliasMap.put("34", "L4_I_NLSP"); |
| 103 | l4TypeAliasMap.put("35", "L4_SWIPE"); |
| 104 | l4TypeAliasMap.put("36", "L4_NARP"); |
| 105 | l4TypeAliasMap.put("37", "L4_Minimal_Encapsulation"); |
| 106 | l4TypeAliasMap.put("38", "L4_TLSP"); |
| 107 | l4TypeAliasMap.put("39", "L4_SKIP"); |
| 108 | l4TypeAliasMap.put("3a", "L4_ICMPv6"); |
| 109 | l4TypeAliasMap.put("3b", "L4_IPv6_No_Next_Header"); |
| 110 | l4TypeAliasMap.put("3c", "L4_IPv6_Destination_Options"); |
| 111 | l4TypeAliasMap.put("3d", "L4_Any_host_IP"); |
| 112 | l4TypeAliasMap.put("3e", "L4_CFTP"); |
| 113 | l4TypeAliasMap.put("3f", "L4_Any_local"); |
| 114 | l4TypeAliasMap.put("40", "L4_SATNET"); |
| 115 | l4TypeAliasMap.put("41", "L4_Kryptolan"); |
| 116 | l4TypeAliasMap.put("42", "L4_MIT_RVDP"); |
| 117 | l4TypeAliasMap.put("43", "L4_Internet_Pluribus"); |
| 118 | l4TypeAliasMap.put("44", "L4_Distributed_FS"); |
| 119 | l4TypeAliasMap.put("45", "L4_SATNET"); |
| 120 | l4TypeAliasMap.put("46", "L4_VISA"); |
| 121 | l4TypeAliasMap.put("47", "L4_IP_Core"); |
| 122 | l4TypeAliasMap.put("4a", "L4_Wang_Span"); |
| 123 | l4TypeAliasMap.put("4b", "L4_Packet_Video"); |
| 124 | l4TypeAliasMap.put("4c", "L4_Backroom_SATNET"); |
| 125 | l4TypeAliasMap.put("4d", "L4_SUN_ND"); |
| 126 | l4TypeAliasMap.put("4e", "L4_WIDEBAND_Monitoring"); |
| 127 | l4TypeAliasMap.put("4f", "L4_WIDEBAND_EXPAK"); |
| 128 | l4TypeAliasMap.put("50", "L4_ISO_IP"); |
| 129 | l4TypeAliasMap.put("51", "L4_VMTP"); |
| 130 | l4TypeAliasMap.put("52", "L4_SECURE_VMTP"); |
| 131 | l4TypeAliasMap.put("53", "L4_VINES"); |
| 132 | l4TypeAliasMap.put("54", "L4_TTP"); |
| 133 | l4TypeAliasMap.put("55", "L4_NSFNET_IGP"); |
| 134 | l4TypeAliasMap.put("56", "L4_Dissimilar_GP"); |
| 135 | l4TypeAliasMap.put("57", "L4_TCF"); |
| 136 | l4TypeAliasMap.put("58", "L4_EIGRP"); |
| 137 | l4TypeAliasMap.put("59", "L4_OSPF"); |
| 138 | l4TypeAliasMap.put("5a", "L4_Sprite_RPC"); |
| 139 | l4TypeAliasMap.put("5b", "L4_Locus_ARP"); |
| 140 | l4TypeAliasMap.put("5c", "L4_MTP"); |
| 141 | l4TypeAliasMap.put("5d", "L4_AX"); |
| 142 | l4TypeAliasMap.put("5e", "L4_IP_within_IP"); |
| 143 | l4TypeAliasMap.put("5f", "L4_Mobile_ICP"); |
| 144 | l4TypeAliasMap.put("61", "L4_EtherIP"); |
| 145 | l4TypeAliasMap.put("62", "L4_Encapsulation_Header"); |
| 146 | l4TypeAliasMap.put("64", "L4_GMTP"); |
| 147 | l4TypeAliasMap.put("65", "L4_IFMP"); |
| 148 | l4TypeAliasMap.put("66", "L4_PNNI"); |
| 149 | l4TypeAliasMap.put("67", "L4_PIM"); |
| 150 | l4TypeAliasMap.put("68", "L4_ARIS"); |
| 151 | l4TypeAliasMap.put("69", "L4_SCPS"); |
| 152 | l4TypeAliasMap.put("6a", "L4_QNX"); |
| 153 | l4TypeAliasMap.put("6b", "L4_Active_Networks"); |
| 154 | l4TypeAliasMap.put("6c", "L4_IPPCP"); |
| 155 | l4TypeAliasMap.put("6d", "L4_SNP"); |
| 156 | l4TypeAliasMap.put("6e", "L4_Compaq_Peer_Protocol"); |
| 157 | l4TypeAliasMap.put("6f", "L4_IPX_in_IP"); |
| 158 | l4TypeAliasMap.put("70", "L4_VRRP"); |
| 159 | l4TypeAliasMap.put("71", "L4_PGM"); |
| 160 | l4TypeAliasMap.put("72", "L4_0_hop"); |
| 161 | l4TypeAliasMap.put("73", "L4_L2TP"); |
| 162 | l4TypeAliasMap.put("74", "L4_DDX"); |
| 163 | l4TypeAliasMap.put("75", "L4_IATP"); |
| 164 | l4TypeAliasMap.put("76", "L4_ST"); |
| 165 | l4TypeAliasMap.put("77", "L4_SRP"); |
| 166 | l4TypeAliasMap.put("78", "L4_UTI"); |
| 167 | l4TypeAliasMap.put("79", "L4_SMP"); |
| 168 | l4TypeAliasMap.put("7a", "L4_SM"); |
| 169 | l4TypeAliasMap.put("7b", "L4_PTP"); |
| 170 | l4TypeAliasMap.put("7c", "L4_ISIS"); |
| 171 | l4TypeAliasMap.put("7d", "L4_FIRE"); |
| 172 | l4TypeAliasMap.put("7e", "L4_CRTP"); |
| 173 | l4TypeAliasMap.put("7f", "L4_CRUDP"); |
| 174 | l4TypeAliasMap.put("80", "L4_SSCOPMCE"); |
| 175 | l4TypeAliasMap.put("81", "L4_IPLT"); |
| 176 | l4TypeAliasMap.put("82", "L4_SPS"); |
| 177 | l4TypeAliasMap.put("83", "L4_PIPE"); |
| 178 | l4TypeAliasMap.put("84", "L4_SCTP"); |
| 179 | l4TypeAliasMap.put("85", "L4_Fibre_Channel"); |
| 180 | l4TypeAliasMap.put("86", "L4_RSVP_E2E_IGNORE"); |
| 181 | l4TypeAliasMap.put("87", "L4_Mobility_Header"); |
| 182 | l4TypeAliasMap.put("88", "L4_UDP_Lite"); |
| 183 | l4TypeAliasMap.put("89", "L4_MPLS"); |
| 184 | l4TypeAliasMap.put("8a", "L4_MANET"); |
| 185 | l4TypeAliasMap.put("8b", "L4_HIP"); |
| 186 | l4TypeAliasMap.put("8c", "L4_Shim6"); |
| 187 | l4TypeAliasMap.put("8d", "L4_WESP"); |
| 188 | l4TypeAliasMap.put("8e", "L4_ROHC"); |
| 189 | } |
| 190 | } |