summaryrefslogtreecommitdiff
path: root/accel-pppd/shaper/shaper.h
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2016-04-01 00:28:19 +0300
committerDmitry Kozlov <xeb@mail.ru>2016-04-01 00:28:19 +0300
commite250729120be0c0ed119500e426da00cbe6a5fbe (patch)
tree9be14f98eda0df1e283245fb818ad57656497271 /accel-pppd/shaper/shaper.h
parente0aa33c19b70bd411814c51afdfc195438082e94 (diff)
downloadaccel-ppp-e250729120be0c0ed119500e426da00cbe6a5fbe.tar.gz
accel-ppp-e250729120be0c0ed119500e426da00cbe6a5fbe.zip
shaper: implemented internal class id map
Before this commit shaper used ses->unit_idx as class id, but it is not unique. This commit introduces internal map to manage unique class ids
Diffstat (limited to 'accel-pppd/shaper/shaper.h')
-rw-r--r--accel-pppd/shaper/shaper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/shaper/shaper.h b/accel-pppd/shaper/shaper.h
index 87cf45fe..1b1e885e 100644
--- a/accel-pppd/shaper/shaper.h
+++ b/accel-pppd/shaper/shaper.h
@@ -45,8 +45,8 @@ extern int conf_lq_arg4;
extern int conf_lq_arg5;
extern int conf_lq_arg6;
-int install_limiter(struct ap_session *ses, int down_speed, int down_burst, int up_speed, int up_burst);
-int remove_limiter(struct ap_session *ses);
+int install_limiter(struct ap_session *ses, int down_speed, int down_burst, int up_speed, int up_burst, int idx);
+int remove_limiter(struct ap_session *ses, int idx);
int install_leaf_qdisc(struct rtnl_handle *rth, int ifindex, int parent, int handle);
int init_ifb(const char *);