Hello,
We have an NDK Compatibility issue and was curious if there is a fix:
NDK version = 2.20.03.24 http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ndk/ndk_2_20_03_24/index_FDS.html
DSPBIOS version = 5.41.10.36
Problem involves the API call: DNSGetHostByName(char *Name, void *pScrapBuf, int size). According to the header file, pScrapBuf can be treated as a HOSTENT structure. HOSTENT contains all the info we need to get the IP address(es) for whatever URL we provided in the Name string. The definition we have for HOSTENT (again from the documentation and the header file), has the array of returned IP address(es) declared as: IPN h_addr[MAXIPADDR]. IPN is just a fancy way of saying unsigned int, which on the C6748 is a 32bits.
So h_addr[MAXIPADDR] is just an array of 32bit unsigned values containing the IP address(es). However, when we examine h_addr[0] (which should contain the 1st result), the value in there is NOT the correct IP address. We have another product that uses a different version of the NDK (1.94), and using the same API call returns the correct IP address in h_addr[0].
-Jason