工程师您好!
因为功能需要,我们已经成功在ipnc解决方案中移植了usb wifi模块,现在想用usb wifi模块完全替代有线网卡的功能,使ipnc在不使用网线的情况下启动。
但是目前的ipnc在不插入网线的情况下是不能正常启动的,我猜测可能和启动脚本有关,所以想请教各位高手:
IPNC要在不插入网线的情况下正常启动,应该修改哪些地方?
万分感谢!!!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工程师您好!
因为功能需要,我们已经成功在ipnc解决方案中移植了usb wifi模块,现在想用usb wifi模块完全替代有线网卡的功能,使ipnc在不使用网线的情况下启动。
但是目前的ipnc在不插入网线的情况下是不能正常启动的,我猜测可能和启动脚本有关,所以想请教各位高手:
IPNC要在不插入网线的情况下正常启动,应该修改哪些地方?
万分感谢!!!
thanks,kooking,又在论坛见到你了,很活跃哇D~
我后来发现ipnc在不插入网线的时候也可以完成启动,但是启动较慢,我正在查找原因,很感谢你提供的资料,对我帮助很大,谢谢!
比如对于dhcp:
kernel/net/ipv4/ipconfig.c
printk(KERN_NOTICE "Sending %s%s%s requests .", do_bootp ? ((ic_proto_enabled & IC_USE_DHCP) ? "DHCP" : "BOOTP") : "", (do_bootp && do_rarp) ? " and " : "", do_rarp ? "RARP" : "");
start_jiffies = jiffies; d = ic_first_dev; retries = CONF_SEND_RETRIES; get_random_bytes(&timeout, sizeof(timeout)); timeout = CONF_BASE_TIMEOUT + (timeout % (unsigned) CONF_TIMEOUT_RANDOM)
可以减小CONF_BASE_TIMEOUT 和 CONF_TIMEOUT_RANDOM两个宏
还有ic_dynamic(void)的int retries次数减少