在 Linux Ubuntu 上安装 Dummynet

在 Linux Ubuntu 上安装 Dummynet

我是 Ubuntu 新手,我正在尝试安装 dummynet。但是我找不到 Ubuntu 的教程。我尝试按照本教程进行操作http://goo.gl/ZzKrpk但是在创建内核路径时出现错误。

$ make KERNELPATH=/usr/src/kernels/3.11.0-18-generic
echo target is all
target is all
(cd ipfw && make all )
make[1]: Entering directory `/home/pamlens/ipfw3-20120119/ipfw'
Makefile:16: Building userland ipfw for  Linux
cc -O1 -Wall -include ../glue.h -I ./include_e -I ./include -D__BSD_VISIBLE -Werror -I/usr/include -DNO_ALTQ   -c -o ipfw2.o ipfw2.c
ipfw2.c: In function ‘show_ipfw’:
ipfw2.c:976:18: error: variable ‘altqptr’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[1]: *** [ipfw2.o] Error 1
make[1]: Leaving directory `/home/pamlens/ipfw3-20120119/ipfw'
make: *** [all] Error 2

相关内容