MQX4.1 ipcfg_unbind bug

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MQX4.1 ipcfg_unbind bug

551 Views
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

0 Kudos
2 Replies

349 Views
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 Kudos

349 Views
errsionjack
Contributor I

No anybody reply it! The service is too bad.

0 Kudos