int string2typeid(char*s) { if (strcmp(s, "ipVersion"                   ) == 0) return 60; if (strcmp(s, "sourceIPv4Address"           ) == 0) return 8; if (strcmp(s, "sourceIPv6Address"           ) == 0) return 27; if (strcmp(s, "sourceIPv4Mask"              ) == 0) return 9; if (strcmp(s, "sourceIPv6Mask"              ) == 0) return 29; if (strcmp(s, "sourceIPv4Prefix"            ) == 0) return 44; if (strcmp(s, "destinationIPv4Address"      ) == 0) return 12; if (strcmp(s, "destinationIPv6Address"      ) == 0) return 28; if (strcmp(s, "destinationIPv4Mask"         ) == 0) return 13; if (strcmp(s, "destinationIPv6Mask"         ) == 0) return 30; if (strcmp(s, "destinationIPv4Prefix"       ) == 0) return 45; if (strcmp(s, "classOfServiceIPv4"          ) == 0) return 5; if (strcmp(s, "classOfServiceV6"            ) == 0) return 137; if (strcmp(s, "flowLabelV6"                 ) == 0) return 31; if (strcmp(s, "identificationV4"            ) == 0) return 54; if (strcmp(s, "protocolIdentifier"          ) == 0) return 4; if (strcmp(s, "sourceTransportPort"         ) == 0) return 7; if (strcmp(s, "destinationtransportPort"    ) == 0) return 11; if (strcmp(s, "icmpTypeCode"                ) == 0) return 32; if (strcmp(s, "igmpType"                    ) == 0) return 33; if (strcmp(s, "sourceMacAddress"            ) == 0) return 56; if (strcmp(s, "mplsLabelStackEntry1"        ) == 0) return 70; if (strcmp(s, "mplsLabelStackEntry2"        ) == 0) return 71; if (strcmp(s, "mplsLabelStackEntry3"        ) == 0) return 72; if (strcmp(s, "mplsLabelStackEntry4"        ) == 0) return 73; if (strcmp(s, "mplsLabelStackEntry5"        ) == 0) return 74; if (strcmp(s, "mplsLabelStackEntry6"        ) == 0) return 75; if (strcmp(s, "mplsLabelStackEntry7"        ) == 0) return 76; if (strcmp(s, "mplsLabelStackEntry8"        ) == 0) return 77; if (strcmp(s, "mplsLabelStackEntry9"        ) == 0) return 78; if (strcmp(s, "mplsLabelStackEntry10"       ) == 0) return 79; if (strcmp(s, "ipNextHopIPv4Address"        ) == 0) return 15; if (strcmp(s, "ipNextHopIPv6Address"        ) == 0) return 62; if (strcmp(s, "ingressInterface"            ) == 0) return 10; if (strcmp(s, "egressInterface"             ) == 0) return 14; if (strcmp(s, "ipNextHopAsNumber"           ) == 0) return 129; if (strcmp(s, "bgpSourceAsNumber"           ) == 0) return 16; if (strcmp(s, "bgpDestinationAsNumber"      ) == 0) return 17; if (strcmp(s, "bgpNextHopAsNumber"          ) == 0) return 128; if (strcmp(s, "bgpNextHopIPv4Address"       ) == 0) return 18; if (strcmp(s, "bgpNextHopIPv6Address"       ) == 0) return 63; if (strcmp(s, "mplsTopLabelType"            ) == 0) return 46; if (strcmp(s, "mplsTopLabelIPv4Address"     ) == 0) return 47; if (strcmp(s, "mplsTopLabelIPv6Address"     ) == 0) return 140; if (strcmp(s, "exporterIPv4Address"         ) == 0) return 130; if (strcmp(s, "exporterIPv6Address"         ) == 0) return 131; if (strcmp(s, "minPacketLength"             ) == 0) return 25; if (strcmp(s, "maxPacketLength"             ) == 0) return 26; if (strcmp(s, "minimumTTL"                  ) == 0) return 52; if (strcmp(s, "maximumTTL"                  ) == 0) return 53; if (strcmp(s, "ipv6OptionHeaders"           ) == 0) return 64; if (strcmp(s, "tcpControlBits"              ) == 0) return 6; if (strcmp(s, "flowCreationTime"            ) == 0) return 22; if (strcmp(s, "flowEndTime"                 ) == 0) return 21; if (strcmp(s, "flowActiveTimeOut"           ) == 0) return 36; if (strcmp(s, "flowInactiveTimeout"         ) == 0) return 37; if (strcmp(s, "flowEndReason"               ) == 0) return 136; if (strcmp(s, "inOctetDeltaCount"           ) == 0) return 1; if (strcmp(s, "outOctetDeltaCount"          ) == 0) return 23; if (strcmp(s, "octetDeltaCount"             ) == 0) return 138; if (strcmp(s, "octetTotalCount"             ) == 0) return 85; if (strcmp(s, "inPacketDeltaCount"          ) == 0) return 2; if (strcmp(s, "outPacketDeltaCount"         ) == 0) return 24; if (strcmp(s, "packetDeltaCount"            ) == 0) return 139; if (strcmp(s, "packetTotalCount"            ) == 0) return 86; if (strcmp(s, "droppedOctetDeltaCount"      ) == 0) return 132; if (strcmp(s, "droppedOctetTotalCount"      ) == 0) return 133; if (strcmp(s, "droppedPacketDeltaCount"     ) == 0) return 134; if (strcmp(s, "droppedPacketTotalCount"     ) == 0) return 135; if (strcmp(s, "outMulticastPacketCount"     ) == 0) return 19; if (strcmp(s, "outMulticastOctetCount"      ) == 0) return 20; if (strcmp(s, "observedFlowTotalCount"      ) == 0) return 3; if (strcmp(s, "exportedOctetTotalCount"     ) == 0) return 40; if (strcmp(s, "exportedPacketTotalCount"    ) == 0) return 41; if (strcmp(s, "exportedFlowTotalCount"      ) == 0) return 42; return 0; }
int string2typeid(char *s) { return ipfix_name_lookup(s); }
int string2typeid(char*s) {	if (strcmp(s, "ipVersion"                   ) == 0) return 60; 	if (strcmp(s, "sourceIPv4Address"           ) == 0) return 8; 	if (strcmp(s, "sourceIPv6Address"           ) == 0) return 27; 	if (strcmp(s, "sourceIPv4Mask"              ) == 0) return 9; 	if (strcmp(s, "sourceIPv6Mask"              ) == 0) return 29; 	if (strcmp(s, "sourceIPv4Prefix"            ) == 0) return 44; 	if (strcmp(s, "destinationIPv4Address"      ) == 0) return 12; 	if (strcmp(s, "destinationIPv6Address"      ) == 0) return 28; 	if (strcmp(s, "destinationIPv4Mask"         ) == 0) return 13; 	if (strcmp(s, "destinationIPv6Mask"         ) == 0) return 30; 	if (strcmp(s, "destinationIPv4Prefix"       ) == 0) return 45; 	if (strcmp(s, "classOfServiceIPv4"          ) == 0) return 5; 	if (strcmp(s, "classOfServiceV6"            ) == 0) return 137; 	if (strcmp(s, "flowLabelV6"                 ) == 0) return 31; 	if (strcmp(s, "identificationV4"            ) == 0) return 54; 	if (strcmp(s, "protocolIdentifier"          ) == 0) return 4; 	if (strcmp(s, "sourceTransportPort"         ) == 0) return 7; 	if (strcmp(s, "destinationtransportPort"    ) == 0) return 11; 	if (strcmp(s, "icmpTypeCode"                ) == 0) return 32; 	if (strcmp(s, "igmpType"                    ) == 0) return 33; 	if (strcmp(s, "sourceMacAddress"            ) == 0) return 56; 	if (strcmp(s, "mplsLabelStackEntry1"        ) == 0) return 70; 	if (strcmp(s, "mplsLabelStackEntry2"        ) == 0) return 71; 	if (strcmp(s, "mplsLabelStackEntry3"        ) == 0) return 72; 	if (strcmp(s, "mplsLabelStackEntry4"        ) == 0) return 73; 	if (strcmp(s, "mplsLabelStackEntry5"        ) == 0) return 74; 	if (strcmp(s, "mplsLabelStackEntry6"        ) == 0) return 75; 	if (strcmp(s, "mplsLabelStackEntry7"        ) == 0) return 76; 	if (strcmp(s, "mplsLabelStackEntry8"        ) == 0) return 77; 	if (strcmp(s, "mplsLabelStackEntry9"        ) == 0) return 78; 	if (strcmp(s, "mplsLabelStackEntry10"       ) == 0) return 79; 	if (strcmp(s, "ipNextHopIPv4Address"        ) == 0) return 15; 	if (strcmp(s, "ipNextHopIPv6Address"        ) == 0) return 62; 	if (strcmp(s, "ingressInterface"            ) == 0) return 10; 	if (strcmp(s, "egressInterface"             ) == 0) return 14; 	if (strcmp(s, "ipNextHopAsNumber"           ) == 0) return 129; 	if (strcmp(s, "bgpSourceAsNumber"           ) == 0) return 16; 	if (strcmp(s, "bgpDestinationAsNumber"      ) == 0) return 17; 	if (strcmp(s, "bgpNextHopAsNumber"          ) == 0) return 128; 	if (strcmp(s, "bgpNextHopIPv4Address"       ) == 0) return 18; 	if (strcmp(s, "bgpNextHopIPv6Address"       ) == 0) return 63; 	if (strcmp(s, "mplsTopLabelType"            ) == 0) return 46; 	if (strcmp(s, "mplsTopLabelIPv4Address"     ) == 0) return 47; 	if (strcmp(s, "mplsTopLabelIPv6Address"     ) == 0) return 140; 	if (strcmp(s, "exporterIPv4Address"         ) == 0) return 130; 	if (strcmp(s, "exporterIPv6Address"         ) == 0) return 131; 	if (strcmp(s, "minPacketLength"             ) == 0) return 25; 	if (strcmp(s, "maxPacketLength"             ) == 0) return 26; 	if (strcmp(s, "minimumTTL"                  ) == 0) return 52; 	if (strcmp(s, "maximumTTL"                  ) == 0) return 53; 	if (strcmp(s, "ipv6OptionHeaders"           ) == 0) return 64; 	if (strcmp(s, "tcpControlBits"              ) == 0) return 6; 	if (strcmp(s, "flowCreationTime"            ) == 0) return 22; 	if (strcmp(s, "flowEndTime"                 ) == 0) return 21; 	if (strcmp(s, "flowActiveTimeOut"           ) == 0) return 36; 	if (strcmp(s, "flowInactiveTimeout"         ) == 0) return 37; 	if (strcmp(s, "flowEndReason"               ) == 0) return 136; 	if (strcmp(s, "inOctetDeltaCount"           ) == 0) return 1; 	if (strcmp(s, "outOctetDeltaCount"          ) == 0) return 23; 	if (strcmp(s, "octetDeltaCount"             ) == 0) return 138; 	if (strcmp(s, "octetTotalCount"             ) == 0) return 85; 	if (strcmp(s, "inPacketDeltaCount"          ) == 0) return 2; 	if (strcmp(s, "outPacketDeltaCount"         ) == 0) return 24; 	if (strcmp(s, "packetDeltaCount"            ) == 0) return 139; 	if (strcmp(s, "packetTotalCount"            ) == 0) return 86; 	if (strcmp(s, "droppedOctetDeltaCount"      ) == 0) return 132; 	if (strcmp(s, "droppedOctetTotalCount"      ) == 0) return 133; 	if (strcmp(s, "droppedPacketDeltaCount"     ) == 0) return 134; 	if (strcmp(s, "droppedPacketTotalCount"     ) == 0) return 135; 	if (strcmp(s, "outMulticastPacketCount"     ) == 0) return 19; 	if (strcmp(s, "outMulticastOctetCount"      ) == 0) return 20; 	if (strcmp(s, "observedFlowTotalCount"      ) == 0) return 3; 	if (strcmp(s, "exportedOctetTotalCount"     ) == 0) return 40; 	if (strcmp(s, "exportedPacketTotalCount"    ) == 0) return 41; 	if (strcmp(s, "exportedFlowTotalCount"      ) == 0) return 42; 	return 0;	}