mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-09 16:26:59 +08:00
Retrieve connection speed from RADIUS
Hijack Roaring Penguin's RADIUS attributes for that purpose: * RP-Upstream-Speed-Limit → rx_per_sec * RP-Downstream-Speed-Limit → tx_per_sec While the ocserv configuration options use b/s, ocserv uses kb/s internally. The radius attributes are already expressed in kb/s, so we don't need to convert them. Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
This commit is contained in:
committed by
Nikos Mavrogiannopoulos
parent
df657e2772
commit
ab58d9e9d7
@@ -282,3 +282,12 @@ ATTRIBUTE MS-Primary-DNS-Server 28 ipaddr
|
||||
ATTRIBUTE MS-Secondary-DNS-Server 29 ipaddr
|
||||
|
||||
END-VENDOR Microsoft
|
||||
|
||||
VENDOR Roaring-Penguin 10055
|
||||
|
||||
BEGIN-VENDOR Roaring-Penguin
|
||||
|
||||
ATTRIBUTE RP-Upstream-Speed-Limit 1 integer
|
||||
ATTRIBUTE RP-Downstream-Speed-Limit 2 integer
|
||||
|
||||
END-VENDOR Roaring-Penguin
|
||||
|
||||
Reference in New Issue
Block a user