]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
minor updates
authorAlan T. DeKok <aland@freeradius.org>
Tue, 23 May 2017 19:35:06 +0000 (15:35 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 23 May 2017 19:48:30 +0000 (15:48 -0400)
src/modules/proto_radius/proto_radius.c

index 0bfee5c3c2a6821ddb3ed309ae3b943e25e1ef7b..942752c6e6d448c24f4d0cabd21e863474ab2ba4 100644 (file)
 
 #include <freeradius-devel/radiusd.h>
 #include <freeradius-devel/protocol.h>
-#include <freeradius-devel/udp.h>
 #include <freeradius-devel/radius/radius.h>
 #include <freeradius-devel/io/schedule.h>
 #include <freeradius-devel/rad_assert.h>
 
 typedef struct proto_radius_ctx_t {
        int                     sockfd;                         //!< sanity checks
-       void                    *transport_ctx;                 //!< for the transport
+       void                    *io_ctx;                        //!< for the underlying IO layer
        fr_transport_t          transport;
        fr_transport_process_t  process[FR_MAX_PACKET_CODE];
 } proto_radius_ctx_t;
@@ -202,7 +201,7 @@ static int open_transport(proto_radius_ctx_t *ctx, fr_schedule_t *handle, CONF_S
        }
 
        io = (fr_app_io_t const *) module->common;
-       if (io->open(ctx, &ctx->sockfd, &ctx->transport_ctx, &transport, cs, verify_config) < 0) {
+       if (io->open(ctx, &ctx->sockfd, &ctx->io_ctx, &transport, cs, verify_config) < 0) {
                cf_log_err_cs(cs, "Failed compiling unlang for 'transport = %s'", value);
                return -1;
        }