-
Notifications
You must be signed in to change notification settings - Fork 5.2k
LWIP #631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
写得清楚些 |
if (!(ethif->flags & ETHIF_LINK_PHYUP)) set_if这个接口是在使用finsh的时候导出的,希望取消这个限制。 netif_find改成这样执行正确: if (name == NULL) { num = name[2] - '0'; for(netif = netif_list; netif != NULL; netif = netif->next) { 原版 if (name == NULL) { num = name[2] - '0'; for(netif = netif_list; netif != NULL; netif = netif->next) { |
netif_find改不动,这个lwIP原版就是这样。 set_if这个后续考虑整理下API接口了,也许ifconfig更通用些,但还没想好更好的方式。 UP那个,默认是会考虑让网卡UP起来。具体可能需要仔细看看 |
这行代码是不是有bug?
set_if这个接口应该开放出来,在读取配置文件设置静态ip的应用中会用到。
netif_find返回值是NULL
The text was updated successfully, but these errors were encountered: