From: Alan T. DeKok Date: Thu, 1 Jul 2021 13:06:47 +0000 (-0400) Subject: whoops X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d092d1436dcbe16b815440eb5d15a83e4aef2d1;p=thirdparty%2Ffreeradius-server.git whoops --- diff --git a/src/listen/load/proto_load.h b/src/listen/load/proto_load.h new file mode 100644 index 00000000000..121d8e0fb79 --- /dev/null +++ b/src/listen/load/proto_load.h @@ -0,0 +1,56 @@ +#pragma once +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more loads. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/** + * $Id$ + * + * @file proto_load.h + * @brief Load master protocol handler. + * + * @copyright 2017 Alan DeKok (alan@freeradius.org) + */ +RCSIDH(proto_load_h, "$Id$") + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + fr_io_instance_t io; //!< wrapper for IO abstraction + + CONF_SECTION *server_cs; //!< server CS for this listener + CONF_SECTION *cs; //!< my configuration + fr_app_t *self; //!< child / parent linking issues + char const *type; //!< packet type name + + fr_dict_t const *dict; //!< root dictionary + fr_dict_attr_t const *attr_packet_type; + + uint32_t code; //!< packet code to use for incoming packets + uint32_t max_packet_size; //!< for message ring buffer + uint32_t num_messages; //!< for message ring buffer + uint32_t priority; //!< for packet processing, larger == higher +} proto_load_t; + +#include + +#ifdef __cplusplus +} +#endif