No.49711 作者:flycat2008 邮件:yuanxuan2006@126.com ID:114221 登陆:1次 文章数:40篇 最后登陆IP: 最后登陆:2008/7/14 12:15:37 注册:2008/7/14 12:15:37 财富:100 发帖时间:2008/7/22 14:18:29 发贴者IP:222.131.59.63 标题:flycat2008:vxworks 添加默认网关 摘要:No.49711vxworks 添加默认网关 Q: How can I get the default gateway from the bootline to be the default gateway? A: Thanks to a suggestion by Michael Lawnick I pilfered some code from the bootConfig.c file and threw it into usrAppInit.c. This was to get the gateway from the bootline.... The system now works the way it should from the factory. Here is an excerpt of my code: #include "VxWorks.h" #include "bootLib.h" #include "prjParams.h" void usrAppInit (void) { BOOT_PARAMS params; #ifdef USER_APPL_INIT USER_APPL ......
>>返回讨论的主题
|