]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove radius-specific priorities
authorAlan T. DeKok <aland@freeradius.org>
Mon, 1 Apr 2019 00:46:44 +0000 (20:46 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 1 Apr 2019 01:19:24 +0000 (21:19 -0400)
src/modules/proto_detail/proto_detail.c

index b54e8dc252a00148f430abc1cb369a758c7274a4..ab5bea93865007dace2e29011216614d0d82976e 100644 (file)
@@ -467,17 +467,6 @@ static int mod_open(void *instance, fr_schedule_t *sc, CONF_SECTION *conf)
        return 0;
 }
 
-/*
- *     @todo - put these into configuration!
- */
-static uint32_t priorities[FR_MAX_PACKET_CODE] = {
-       [FR_CODE_ACCESS_REQUEST] = PRIORITY_HIGH,
-       [FR_CODE_ACCOUNTING_REQUEST] = PRIORITY_LOW - 1,
-       [FR_CODE_COA_REQUEST] = PRIORITY_NORMAL,
-       [FR_CODE_DISCONNECT_REQUEST] = PRIORITY_NORMAL,
-       [FR_CODE_STATUS_SERVER] = PRIORITY_NOW,
-};
-
 
 /** Instantiate the application
  *
@@ -541,9 +530,7 @@ static int mod_instantiate(void *instance, CONF_SECTION *conf)
        FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, >=, 1024);
        FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, <=, 65536);
 
-       if (!inst->priority && inst->code && (inst->code < FR_MAX_PACKET_CODE)) {
-               inst->priority = priorities[inst->code];
-       }
+       if (!inst->priority) inst->priority = PRIORITY_NORMAL;
 
        /*
         *      If the IO is "file" and not the worker, instantiate the worker now.