MQX4.1 ipcfg_unbind bug

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MQX4.1 ipcfg_unbind bug

597 次查看
errsionjack
Contributor I

Hi, everyone.

     I found a issue in MQX4.1. When I use the DHCP function to get IP and DNS that's no problem. When I plug out the ethernet cable, My APPI unbind the ipcofig and use the deafult IP address.But the "ipcfg_unbind(BSP_DEFAULT_ENET_DEVICE);" blocked untill the WDG reboot. I debuged it and found in the "uint32_t DNS_remove_slist_entry" function free the illegal memory. The following information is the

DNS_SLIST_STRUCT  *temp_ptr

data.   

2016-3-31 17-31-53.png

标记 (1)
0 项奖励
2 回复数

395 次查看
Carlos_Musich
NXP Employee
NXP Employee

Hi Jack,

this is a know issue reported with internal number MQX-5661. It is now solved in MQX4.2.0.2, work around is next:

In file rtcs/source/if/ipcfg.c in function ipcfg_bind_dhcp_func, line 931

parms.ihandle = ipcfg_data[device].ihandle;
parms.address = ipcfg_data[device].dns;
ip_if_add_dns_addr(&parms);

Regards,

Carlos

0 项奖励

395 次查看
errsionjack
Contributor I

No anybody reply it! The service is too bad.

0 项奖励