免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2243 | 回复: 0
打印 上一主题 下一主题

[NetBSD] 讨论netbsd下使用altq [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-09-11 17:31 |只看该作者 |倒序浏览
刚刚在nb网站上看到不支持altq。
然后看到http://nedbsd.nl/~ppostma/pf/altq.html
NetBSD 3.0 supports pf, but there's no ALTQ support. The patches on this page adds support for ALTQ. The reason why this patch is not yet in -current is because it makes ALTQ dependent on pf and many NetBSD developers don't want that. The ALTQ API would need some changes to allow integration of both pf and IP Filter. The guys from KAME have promised to write a sane API since 2003/6, but nothing has happened yet. So that's why I've started to make these patches. The patches are for 3.0 and -current, for 2.0 see the PF LKM for NetBSD 2 page.
大致翻译下就是:
netbsd3.0支持pf,但是不支持ALTQ。本页的补丁加入了ALTQ支持。为什么补丁没有在发行版本中出现的原因是 该补丁导致了ALTQ依赖于pf,很多开发者都不希望这样。ALTQ API要集成在pf和IP filter需要做一些修改。2003年6月,KAME的家伙保证编一个健全的API,但是到现在还是老样子。这就是为什么我要编这些补丁的原因。这些补丁是针对3.0和当前版本的,2.0的补丁见PF LKM for NetBSD 2 page.
下面提供了大致步骤
打补丁:
# cd /usr/src/sys
# patch -p0 < /path/to/altq-netbsd-3.diff
在内核配置文件中加入option ALTQ。重新编译内核,安装新内核并用其启动。

# rm -rf /usr/include/altq/*   //删掉旧的ALTQ头文件
# cd /usr/src/sys/altq
# make includes                //安装新的头文件
重新编译并安装pfctl
# cd /usr/src/usr.sbin/pf/pfctl
# make cleandir && make && make install

请教在netbsd下使用pf的经验(我的试验机器是compaq evo d310。使用的是ms 6541的主板。bios和fb, ob都冲突。)

另外在NetBSD Packet Filter information中有
You can only use ALTQ by using PF as LKM and having ALTQ enabled in the kernel.
是否是说只能用LKM模块方式或者kernel配置文件中激活option ALTQ?难道OB中还有其它方式??
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP