/* * * Copyright (c) 2011-2016 The University of Waikato, Hamilton, New Zealand. * All rights reserved. * * This file is part of libprotoident. * * This code has been developed by the University of Waikato WAND * research group. For further information please see http://www.wand.net.nz/ * * libprotoident is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * libprotoident is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . * * */ #ifndef PROTO_MANAGER_H_ #define PROTO_MANAGER_H_ #include #include #include #include #include "libprotoident.h" typedef std::list LPIModuleList; typedef std::map LPIModuleMap; typedef std::map LPINameMap; typedef std::map LPIProtocolMap; typedef std::map LPICategoryMap; typedef std::map LPICategoryProtocolMap; void register_protocol(lpi_module_t *mod, LPIModuleMap *mod_map); int register_tcp_protocols(LPIModuleMap *mod_map); int register_udp_protocols(LPIModuleMap *mod_map); void register_names(LPIModuleMap *mod_map, LPINameMap *name_map, LPIProtocolMap *proto_map, LPICategoryProtocolMap *category_protocols); void register_category_names(LPICategoryMap *categories); void init_other_protocols(LPINameMap *name_map, LPIProtocolMap *proto_map, LPICategoryProtocolMap *category_protocols); void free_protocols(LPIModuleMap *mod_map); extern lpi_module_t *lpi_icmp; extern lpi_module_t *lpi_unknown_tcp; extern lpi_module_t *lpi_unknown_udp; extern lpi_module_t *lpi_unsupported; #endif