]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Auto load dict_vmps and dict_vmps
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 30 Mar 2018 20:27:26 +0000 (21:27 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 31 Mar 2018 18:52:53 +0000 (19:52 +0100)
src/modules/proto_vmps/proto_vmps.c
src/modules/proto_vmps/vqp.h

index 74a1b88d9ed00b43173c1fad7424d9e83cee7eaa..6e8074a964c2a8bf10704bbecb16823248d37858 100644 (file)
@@ -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).
index d1832be9bbbbb5dd412018f9d2d8f8496673b458..446477cb9f5bde9822a2a49f8b4ee8b88fcb9cf1 100644 (file)
@@ -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);