summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/shaper/CMakeLists.txt4
-rw-r--r--accel-pppd/shaper/limiter.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/accel-pppd/shaper/CMakeLists.txt b/accel-pppd/shaper/CMakeLists.txt
index 989aceb..abfd8ec 100644
--- a/accel-pppd/shaper/CMakeLists.txt
+++ b/accel-pppd/shaper/CMakeLists.txt
@@ -1,2 +1,6 @@
ADD_LIBRARY(shaper SHARED shaper.c limiter.c tc_core.c libnetlink.c)
+INSTALL(TARGETS shaper
+ LIBRARY DESTINATION lib/accel-ppp
+)
+
diff --git a/accel-pppd/shaper/limiter.c b/accel-pppd/shaper/limiter.c
index d985682..d810594 100644
--- a/accel-pppd/shaper/limiter.c
+++ b/accel-pppd/shaper/limiter.c
@@ -479,6 +479,8 @@ int init_ifb(const char *name)
.quantum = conf_r2q,
.qdisc = qdisc_htb_root,
};
+
+ system("modprobe ifb");
memset(&ifr, 0, sizeof(ifr));
strcpy(ifr.ifr_name, name);