Re: [問題] 請問ipfw 要限速 編譯kernel要加哪些呢?

看板FreeBSD作者 (硬碟不足)時間21年前 (2005/02/27 04:38), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
※ 引述《yabe@bbs.ee.ntu.edu.tw (YaBe)》之銘言: : ※ 引述《donkeykong.bbs@ptt.cc (硬碟不足)》之銘言: : : 需要用到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. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.117.197.150
文章代碼(AID): #128DvN9X (FreeBSD)
文章代碼(AID): #128DvN9X (FreeBSD)