They use the same attributes, which makes the result confusing
For FreeRADIUS-Statistics-Type:
0x00 will send global stats and no more
0x10 sends internal queue stats, and may as well send global stats too
0x20 sends client stats but uses the same attrs as global so should
not send global stats
0x40 sends server listen stats, same attrs so should not send
global stats as above
0x80 sends proxy home-server stats; uses different attrs so could
send global stats, but to be consistent with above still
don't do so
canonical attribute
* Make FreeRADIUS-Server-EMA* attributes work again for home server
exponential moving average statistics.
+ * Don't send the global server stats when asked for client stats. They
+ use the same attributes, so the result is confusing.
FreeRADIUS 3.2.3 Fri 26 May 2023 12:00:00 EDT urgency=low
Configuration changes
* Authentication.
*/
if (((flag->vp_integer & 0x01) != 0) && /* auth */
- ((flag->vp_integer & 0xc0) == 0)) { /* not server or home-server */
+ ((flag->vp_integer & 0xe0) == 0)) { /* not client, server or home-server */
request_stats_addvp(request, authvp, &radius_auth_stats);
}
* Accounting
*/
if (((flag->vp_integer & 0x02) != 0) && /* accounting */
- ((flag->vp_integer & 0xc0) == 0)) { /* not server or home-server */
+ ((flag->vp_integer & 0xe0) == 0)) { /* not client, server or home-server */
request_stats_addvp(request, acctvp, &radius_acct_stats);
}
#endif