From: Arran Cudbard-Bell Date: Fri, 30 Mar 2018 20:27:26 +0000 (+0100) Subject: Auto load dict_vmps and dict_vmps X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=598430968ddb247b494308cbffa88dc859a40b6e;p=thirdparty%2Ffreeradius-server.git Auto load dict_vmps and dict_vmps --- diff --git a/src/modules/proto_vmps/proto_vmps.c b/src/modules/proto_vmps/proto_vmps.c index 74a1b88d9ed..6e8074a964c 100644 --- a/src/modules/proto_vmps/proto_vmps.c +++ b/src/modules/proto_vmps/proto_vmps.c @@ -51,6 +51,14 @@ static CONF_PARSER const proto_vmps_config[] = { CONF_PARSER_TERMINATOR }; +fr_dict_t const *dict_vqp; + +extern fr_dict_autoload_t proto_vmps_dict[]; +fr_dict_autoload_t proto_vmps_dict[] = { + { .out = &dict_vqp, .proto = "vqp" }, + { NULL } +}; + /** Wrapper around dl_instance which translates the packet-type into a submodule name * * @param[in] ctx to allocate data in (instance of proto_vmps). diff --git a/src/modules/proto_vmps/vqp.h b/src/modules/proto_vmps/vqp.h index d1832be9bbb..446477cb9f5 100644 --- a/src/modules/proto_vmps/vqp.h +++ b/src/modules/proto_vmps/vqp.h @@ -32,6 +32,8 @@ RCSIDH(vqp_h, "$Id$") extern "C" { #endif +extern fr_dict_t const *dict_vqp; + RADIUS_PACKET *vqp_recv(TALLOC_CTX *ctx, int sockfd); bool fr_vqp_ok(uint8_t const *packet, size_t *packet_len); int vqp_send(RADIUS_PACKET *packet);