]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
rename to be clearer
authorAlan T. DeKok <aland@freeradius.org>
Sun, 14 Apr 2024 13:01:03 +0000 (09:01 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 15 Apr 2024 13:17:31 +0000 (09:17 -0400)
and update list of allowed replies

src/bin/radclient-ng.c
src/protocols/radius/client.c
src/protocols/radius/client.h

index 2d8e39175016365e57855f6c12f5e1bb47589bea..6135eef1544f1f564159c0274dbfdaa6ed66cde6 100644 (file)
@@ -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),
index 467f8d85415094e133cc686fa33e84aca960e55a..64c45ff76169ad20d4032349ba1daf1d15a0042a 100644 (file)
@@ -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;
index 8050c132cfed37abee5526b1ae9696d50d5c6360..6d7579705d5a00b06c4e5137ef4c18409b527934 100644 (file)
@@ -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;