Merge branch 'minor' into 'master'

cosmetic fixes for rx/tx per sec limit

See merge request openconnect/ocserv!214
This commit is contained in:
Nikos Mavrogiannopoulos
2020-09-16 12:17:06 +00:00
6 changed files with 7 additions and 5 deletions

View File

@@ -594,7 +594,7 @@ no-route = 192.168.5.0/255.255.255.0
# per group. Each file name on these directories must match the username
# or the groupname.
# The options allowed in the configuration files are dns, nbns,
# ipv?-network, ipv4-netmask, rx/tx-per-sec, iroute, route, no-route,
# ipv?-network, ipv4-netmask, rx/tx-data-per-sec, iroute, route, no-route,
# explicit-ipv4, explicit-ipv6, net-priority, deny-roaming, no-udp,
# keepalive, dpd, mobile-dpd, max-same-clients, tunnel-all-dns,
# restrict-user-to-routes, cgroup, stats-report-time,

View File

@@ -425,10 +425,12 @@ static int append_user_info(method_ctx *ctx,
tmp = ctmp->config->rx_per_sec;
tmp *= 1000;
rep->has_rx_per_sec = ctmp->config->has_rx_per_sec;
rep->rx_per_sec = tmp;
tmp = ctmp->config->tx_per_sec;
tmp *= 1000;
rep->has_tx_per_sec = ctmp->config->has_tx_per_sec;
rep->tx_per_sec = tmp;
rep->dpd = ctmp->config->dpd;

View File

@@ -253,7 +253,7 @@ route = fc13:71:ea31:4b4e::/64
# per group. Each file name on these directories must match the username
# or the groupname.
# The options allowed in the configuration files are dns, nbns,
# ipv?-network, ipv4-netmask, ipv6-prefix, rx/tx-per-sec, iroute, route,
# ipv?-network, ipv4-netmask, ipv6-prefix, rx/tx-data-per-sec, iroute, route,
# net-priority and cgroup.
#
# Note that the 'iroute' option allows one to add routes on the server

View File

@@ -258,7 +258,7 @@ route = fc13:71:ea31:4b4e::/64
# per group. Each file name on these directories must match the username
# or the groupname.
# The options allowed in the configuration files are dns, nbns,
# ipv?-network, ipv4-netmask, ipv6-prefix, rx/tx-per-sec, iroute, route,
# ipv?-network, ipv4-netmask, ipv6-prefix, rx/tx-data-per-sec, iroute, route,
# net-priority and cgroup.
#
# Note that the 'iroute' option allows one to add routes on the server

View File

@@ -275,7 +275,7 @@ route = fc13:71:ea31:4b4e::/64
# per group. Each file name on these directories must match the username
# or the groupname.
# The options allowed in the configuration files are dns, nbns,
# ipv?-network, ipv4-netmask, ipv6-prefix, rx/tx-per-sec, iroute, route,
# ipv?-network, ipv4-netmask, ipv6-prefix, rx/tx-data-per-sec, iroute, route,
# net-priority and cgroup.
#
# Note that the 'iroute' option allows one to add routes on the server

View File

@@ -254,7 +254,7 @@ route = fc13:71:ea31:4b4e::/64
# per group. Each file name on these directories must match the username
# or the groupname.
# The options allowed in the configuration files are dns, nbns,
# ipv?-network, ipv4-netmask, ipv6-prefix, rx/tx-per-sec, iroute, route,
# ipv?-network, ipv4-netmask, ipv6-prefix, rx/tx-data-per-sec, iroute, route,
# net-priority and cgroup.
#
# Note that the 'iroute' option allows one to add routes on the server