請問ipfw 要限速 編譯kernel要加哪些呢? - BBS
By Elvira
at 2005-02-27T04:40
at 2005-02-27T04:40
Table of Contents
※ 引述《[email protected] (YaBe)》之銘言:
: ※ 引述《[email protected] (硬碟不足)》之銘言:
: : 需要用到pipe來限速的時候
: : 除了在kernel裡面加上 options dummynet
: ^^^^^^^^
: 我記得有加這個就可以限速啦!?
: Ref.
: http://www.gocar.idv.tw/teachdata/ipfw.htm
: : 以外 有哪些是一定要加的呢
: : 我只加這個結果在build的時候錯誤了 謝謝
小弟原本的設定檔make buildkernel 成功
加入這一行 就出現錯誤了
不知道有沒有人能夠幫我檢查一下問題在哪裡呢
===============================
cc -shared -nostdlib hack.c -o hack.So
rm -f hack.c
MAKE=make sh /usr/src/sys/conf/newvers.sh GENERIC_donkey
cc -c -O -pipe -march=pentium3 -Wall -Wredundant-decls -Wnested-externs -Wstri
ct-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -ffo
rmat-extensions -std=c99 -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/con
trib/dev/acpica -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I
/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/
dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -
fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-fu
nction-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -ffre
estanding -Werror vers.c
linking kernel
ip_dummynet.o(.text+0x2058): In function `dummynet_flush':
: undefined reference to `flush_pipe_ptrs'
ip_dummynet.o(.text+0x218f): In function `dn_rule_delete_fs':
: undefined reference to `ip_fw_default_rule'
ip_dummynet.o(.text+0x227f): In function `dn_rule_delete':
: undefined reference to `ip_fw_default_rule'
ip_dummynet.o(.text+0x2eb2): In function `delete_pipe':
: undefined reference to `flush_pipe_ptrs'
ip_dummynet.o(.text+0x307f): In function `delete_pipe':
: undefined reference to `flush_pipe_ptrs'
ip_dummynet.o(.text+0x37a8): In function `ip_dn_init':
: undefined reference to `ip_dn_ruledel_ptr'
*** Error code 1
Stop in /usr/obj/usr/src/sys/donkey.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
--
Tags:
BBS
All Comments
Related Posts
Re: 請問用vmware架freebsd
By Donna
at 2005-02-26T23:47
at 2005-02-26T23:47
Re: 請問用vmware架freebsd
By Donna
at 2005-02-26T22:19
at 2005-02-26T22:19
請問用vmware架freebsd
By Barb Cronin
at 2005-02-26T21:25
at 2005-02-26T21:25
Re: 請問加大ram
By Rebecca
at 2005-02-26T10:56
at 2005-02-26T10:56
Re: 救命...ifconfig 之後完蛋了
By Jake
at 2005-02-26T03:55
at 2005-02-26T03:55