]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add packet_ctx to fr_channel_data_t
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 7 Jun 2017 17:11:53 +0000 (13:11 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 7 Jun 2017 19:26:24 +0000 (15:26 -0400)
src/lib/io/channel.h

index 70cf3f6e838479b1021fdab56b09564cbaa12784..5f93069d64b5b964991576d3f3dd41b17dfbbb7d 100644 (file)
@@ -107,7 +107,11 @@ typedef struct fr_channel_data_t {
 
        uint32_t        priority;                               //!< Priority of this packet.
 
-       fr_io_t *io;                            //!< for tracking packet transport, etc.
+       void            *packet_ctx;                            //!< Packet specific context for holding client
+                                                               //!< information, and other proto_* specific information
+                                                               //!< that needs to be passed to the request.
+
+       fr_io_t         *io;                                    //!< for tracking packet transport, etc.
 } fr_channel_data_t;
 
 fr_channel_t *fr_channel_create(TALLOC_CTX *ctx, fr_control_t *master, fr_control_t *worker) CC_HINT(nonnull);