From: Alan T. DeKok Date: Sun, 14 Apr 2024 13:01:03 +0000 (-0400) Subject: rename to be clearer X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9730e248edde7d7ffa921d67796feb7b9b2699b9;p=thirdparty%2Ffreeradius-server.git rename to be clearer and update list of allowed replies --- diff --git a/src/bin/radclient-ng.c b/src/bin/radclient-ng.c index 2d8e3917501..6135eef1544 100644 --- a/src/bin/radclient-ng.c +++ b/src/bin/radclient-ng.c @@ -1309,7 +1309,9 @@ int main(int argc, char **argv) /* * Initialize the retry configuration for this type of packet. */ - client_config.allowed[packet_code] = true; + client_config.outgoing[packet_code] = true; + (void) fr_radius_allow_reply(packet_code, client_config.verify.allowed); + client_config.retry[packet_code] = (fr_retry_config_t) { .irt = timeout, .mrt = fr_time_delta_from_sec(16), diff --git a/src/protocols/radius/client.c b/src/protocols/radius/client.c index 467f8d85415..64c45ff7616 100644 --- a/src/protocols/radius/client.c +++ b/src/protocols/radius/client.c @@ -72,7 +72,7 @@ fr_radius_client_fd_bio_t *fr_radius_client_fd_bio_alloc(TALLOC_CTX *ctx, size_t * Allocate tracking for all of the packets. */ for (i = 1; i < FR_RADIUS_CODE_MAX; i++) { - if (!cfg->allowed[i]) continue; + if (!cfg->outgoing[i]) continue; my->codes[i] = fr_radius_id_alloc(my); if (!my->codes[i]) goto fail; diff --git a/src/protocols/radius/client.h b/src/protocols/radius/client.h index 8050c132cfe..6d7579705d5 100644 --- a/src/protocols/radius/client.h +++ b/src/protocols/radius/client.h @@ -38,7 +38,7 @@ typedef struct { fr_bio_retry_config_t retry_cfg; - bool allowed[FR_RADIUS_CODE_MAX]; //!< allowed outgoing packet types + bool outgoing[FR_RADIUS_CODE_MAX]; //!< allowed outgoing packet types fr_retry_config_t retry[FR_RADIUS_CODE_MAX]; //!< default retry configuration for each packet type } fr_radius_client_config_t;