From: Alan T. DeKok Date: Tue, 26 Mar 2024 11:25:18 +0000 (-0400) Subject: note @todo for Acct-Delay-Time X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=656ce12089f2089ab2fcd68af5520285a7808afd;p=thirdparty%2Ffreeradius-server.git note @todo for Acct-Delay-Time --- diff --git a/src/protocols/radius/client.c b/src/protocols/radius/client.c index 16bc13226cc..e78969bbd06 100644 --- a/src/protocols/radius/client.c +++ b/src/protocols/radius/client.c @@ -186,7 +186,17 @@ static void radius_client_retry_sent(fr_bio_t *bio, void *packet_ctx, const void id_ctx->packet = packet_ctx; id_ctx->retry_ctx = retry_ctx; + retry_ctx->uctx = id_ctx; + + /* + * @todo - set this for Accounting-Request packets which have Acct-Delay-Time we need to track + * where the Acct-Delay-Time is in the packet, along with its original value, and then we can use + * the #fr_retry_t to discover how many seconds to add to Acct-Delay-Time. + */ + retry_ctx->rewrite = NULL; + +// if (buffer[0] != FR_RADIUS_CODE_ACCOUNTING_REQUEST) return; } static bool radius_client_retry_response(fr_bio_t *bio, fr_bio_retry_entry_t **retry_ctx_p, UNUSED void *packet_ctx, const void *buffer, UNUSED size_t size)